<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.15"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>TTMath: ttmath::Big&lt; exp, man &gt; Class Template Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="ttmath_logo_for_doxygen_doc.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">TTMath
   &#160;<span id="projectnumber">0.9.4_prerelease_2019-07-31</span>
   </div>
   <div id="projectbrief">&nbsp;C++ bignum library</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.15 -->
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',false,false,'search.php','Search');
});
/* @license-end */</script>
<div id="main-nav"></div>
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespacettmath.html">ttmath</a></li><li class="navelem"><a class="el" href="classttmath_1_1_big.html">Big</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-methods">Static Public Member Functions</a> &#124;
<a href="#pub-attribs">Data Fields</a> &#124;
<a href="#friends">Friends</a>  </div>
  <div class="headertitle">
<div class="title">ttmath::Big&lt; exp, man &gt; Class Template Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p><a class="el" href="classttmath_1_1_big.html" title="Big implements the floating point numbers.">Big</a> implements the floating point numbers.  
 <a href="classttmath_1_1_big.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="ttmathbig_8h_source.html">ttmathbig.h</a>&gt;</code></p>
<div class="dynheader">
Collaboration diagram for ttmath::Big&lt; exp, man &gt;:</div>
<div class="dyncontent">
<div class="center"><img src="classttmath_1_1_big__coll__graph.png" border="0" usemap="#ttmath_1_1_big_3_01exp_00_01man_01_4_coll__map" alt="Collaboration graph"/></div>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a0681595612114e8ab1dc9c8f3e8590e7"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classttmath_1_1_big.html#a0681595612114e8ab1dc9c8f3e8590e7">CheckCarry</a> (<a class="el" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a> c)</td></tr>
<tr class="separator:a0681595612114e8ab1dc9c8f3e8590e7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aedc4abe8e1d984289b41830e9a1d67fb"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classttmath_1_1_big.html#aedc4abe8e1d984289b41830e9a1d67fb">Standardizing</a> ()</td></tr>
<tr class="separator:aedc4abe8e1d984289b41830e9a1d67fb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9b37f06bfa5793ecbfe889e7ad7931b2"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classttmath_1_1_big.html#a9b37f06bfa5793ecbfe889e7ad7931b2">ClearInfoBit</a> (unsigned char bit)</td></tr>
<tr class="separator:a9b37f06bfa5793ecbfe889e7ad7931b2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae851f864ffab7964931e6b0f7632a377"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classttmath_1_1_big.html#ae851f864ffab7964931e6b0f7632a377">SetInfoBit</a> (unsigned char bit)</td></tr>
<tr class="separator:ae851f864ffab7964931e6b0f7632a377"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac3a17607588c394ee7fa674e83f0d54a"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classttmath_1_1_big.html#ac3a17607588c394ee7fa674e83f0d54a">IsInfoBit</a> (unsigned char bit) const</td></tr>
<tr class="separator:ac3a17607588c394ee7fa674e83f0d54a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1b5980e7d66c1a6bcfe55d85eccb1821"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classttmath_1_1_big.html#a1b5980e7d66c1a6bcfe55d85eccb1821">SetZero</a> ()</td></tr>
<tr class="separator:a1b5980e7d66c1a6bcfe55d85eccb1821"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5243a9f27365aa90ef3504fd9e52e476"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classttmath_1_1_big.html#a5243a9f27365aa90ef3504fd9e52e476">SetOne</a> ()</td></tr>
<tr class="separator:a5243a9f27365aa90ef3504fd9e52e476"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:add0ae88434679a663de0f5b3822d0146"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classttmath_1_1_big.html#add0ae88434679a663de0f5b3822d0146">Set05</a> ()</td></tr>
<tr class="separator:add0ae88434679a663de0f5b3822d0146"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a568b91071e386e75dffb0aebdf1c47ec"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classttmath_1_1_big.html#a568b91071e386e75dffb0aebdf1c47ec">SetNan</a> ()</td></tr>
<tr class="separator:a568b91071e386e75dffb0aebdf1c47ec"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a71805011593c0be2e134dae8d71983ea"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classttmath_1_1_big.html#a71805011593c0be2e134dae8d71983ea">SetZeroNan</a> ()</td></tr>
<tr class="separator:a71805011593c0be2e134dae8d71983ea"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a86225c6b7812f9d9ed2a4009b3278222"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classttmath_1_1_big.html#a86225c6b7812f9d9ed2a4009b3278222">Swap</a> (<a class="el" href="classttmath_1_1_big.html">Big</a>&lt; exp, man &gt; &amp;ss2)</td></tr>
<tr class="separator:a86225c6b7812f9d9ed2a4009b3278222"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa7791262bfc4007520edeb1e68624e9a"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classttmath_1_1_big.html#aa7791262bfc4007520edeb1e68624e9a">SetPi</a> ()</td></tr>
<tr class="separator:aa7791262bfc4007520edeb1e68624e9a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acbbb59d97c06e93138551fb160c399c0"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classttmath_1_1_big.html#acbbb59d97c06e93138551fb160c399c0">Set05Pi</a> ()</td></tr>
<tr class="separator:acbbb59d97c06e93138551fb160c399c0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a90e579e35cb45cbe5c49d03cd5e531ef"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classttmath_1_1_big.html#a90e579e35cb45cbe5c49d03cd5e531ef">Set2Pi</a> ()</td></tr>
<tr class="separator:a90e579e35cb45cbe5c49d03cd5e531ef"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a25b9b67e9002f60d70d729f896279e36"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classttmath_1_1_big.html#a25b9b67e9002f60d70d729f896279e36">SetE</a> ()</td></tr>
<tr class="separator:a25b9b67e9002f60d70d729f896279e36"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac34df29b0b14bee8687eefc07b8698af"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classttmath_1_1_big.html#ac34df29b0b14bee8687eefc07b8698af">SetLn2</a> ()</td></tr>
<tr class="separator:ac34df29b0b14bee8687eefc07b8698af"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac205056b86c652cb859287118a7cfae9"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classttmath_1_1_big.html#ac205056b86c652cb859287118a7cfae9">SetLn10</a> ()</td></tr>
<tr class="separator:ac205056b86c652cb859287118a7cfae9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4a4d897f3a1cd7eea680884dbf327ba6"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classttmath_1_1_big.html#a4a4d897f3a1cd7eea680884dbf327ba6">SetMax</a> ()</td></tr>
<tr class="separator:a4a4d897f3a1cd7eea680884dbf327ba6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acb724c5ab24678fd24bc93189fef3973"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classttmath_1_1_big.html#acb724c5ab24678fd24bc93189fef3973">SetMin</a> ()</td></tr>
<tr class="separator:acb724c5ab24678fd24bc93189fef3973"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a00cdfa94cc491487709a3f1356fd0a14"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classttmath_1_1_big.html#a00cdfa94cc491487709a3f1356fd0a14">IsZero</a> () const</td></tr>
<tr class="separator:a00cdfa94cc491487709a3f1356fd0a14"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac8f89807eb1878d93d76fe609f4a6b42"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classttmath_1_1_big.html#ac8f89807eb1878d93d76fe609f4a6b42">IsSign</a> () const</td></tr>
<tr class="separator:ac8f89807eb1878d93d76fe609f4a6b42"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7575e10d9fff2f301a66bb05ab472111"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classttmath_1_1_big.html#a7575e10d9fff2f301a66bb05ab472111">IsNan</a> () const</td></tr>
<tr class="separator:a7575e10d9fff2f301a66bb05ab472111"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9e3548dd8473d8dc8bf2fa03b13059e2"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classttmath_1_1_big.html#a9e3548dd8473d8dc8bf2fa03b13059e2">Abs</a> ()</td></tr>
<tr class="separator:a9e3548dd8473d8dc8bf2fa03b13059e2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad936f1c064b22965cabc9b818ade48a9"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classttmath_1_1_big.html#ad936f1c064b22965cabc9b818ade48a9">Sgn</a> ()</td></tr>
<tr class="separator:ad936f1c064b22965cabc9b818ade48a9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3486d67def6959bd98ee590649c4d1c1"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classttmath_1_1_big.html#a3486d67def6959bd98ee590649c4d1c1">SetSign</a> ()</td></tr>
<tr class="separator:a3486d67def6959bd98ee590649c4d1c1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5ab986f32abce29ad9183833430e6723"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classttmath_1_1_big.html#a5ab986f32abce29ad9183833430e6723">ChangeSign</a> ()</td></tr>
<tr class="separator:a5ab986f32abce29ad9183833430e6723"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af8cc709585199e6f5b48e9b4e058b043"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classttmath_1_1_big.html#af8cc709585199e6f5b48e9b4e058b043">Add</a> (<a class="el" href="classttmath_1_1_big.html">Big</a>&lt; exp, man &gt; ss2, bool round=true, bool adding=true)</td></tr>
<tr class="separator:af8cc709585199e6f5b48e9b4e058b043"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab06fe23729905c90461b52be26104744"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classttmath_1_1_big.html#ab06fe23729905c90461b52be26104744">Sub</a> (const <a class="el" href="classttmath_1_1_big.html">Big</a>&lt; exp, man &gt; &amp;ss2, bool round=true)</td></tr>
<tr class="separator:ab06fe23729905c90461b52be26104744"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afd2e1ded5ff360db5f2b6e1b98fb360f"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classttmath_1_1_big.html#afd2e1ded5ff360db5f2b6e1b98fb360f">BitAnd</a> (<a class="el" href="classttmath_1_1_big.html">Big</a>&lt; exp, man &gt; ss2)</td></tr>
<tr class="separator:afd2e1ded5ff360db5f2b6e1b98fb360f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae050abccee92058b55a9a890350eb23d"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classttmath_1_1_big.html#ae050abccee92058b55a9a890350eb23d">BitOr</a> (<a class="el" href="classttmath_1_1_big.html">Big</a>&lt; exp, man &gt; ss2)</td></tr>
<tr class="separator:ae050abccee92058b55a9a890350eb23d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7d291abddb1d43ca4784ba152cdd6d25"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classttmath_1_1_big.html#a7d291abddb1d43ca4784ba152cdd6d25">BitXor</a> (<a class="el" href="classttmath_1_1_big.html">Big</a>&lt; exp, man &gt; ss2)</td></tr>
<tr class="separator:a7d291abddb1d43ca4784ba152cdd6d25"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a096173e99072ed2ef2dc52071c6b4b7a"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classttmath_1_1_big.html#a096173e99072ed2ef2dc52071c6b4b7a">MulUInt</a> (<a class="el" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a> ss2)</td></tr>
<tr class="separator:a096173e99072ed2ef2dc52071c6b4b7a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2287eb7f44b7483d93ffb32e490d4987"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classttmath_1_1_big.html#a2287eb7f44b7483d93ffb32e490d4987">MulInt</a> (<a class="el" href="namespacettmath.html#a4b0a5dcba29a2c7a0abc8b4403a25ac4">sint</a> ss2)</td></tr>
<tr class="separator:a2287eb7f44b7483d93ffb32e490d4987"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a77d542e9f74a0bb8b93847a92c024c47"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classttmath_1_1_big.html#a77d542e9f74a0bb8b93847a92c024c47">Mul</a> (const <a class="el" href="classttmath_1_1_big.html">Big</a>&lt; exp, man &gt; &amp;ss2, bool round=true)</td></tr>
<tr class="separator:a77d542e9f74a0bb8b93847a92c024c47"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a57fa951410244551c3449910fe129d64"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classttmath_1_1_big.html#a57fa951410244551c3449910fe129d64">Div</a> (const <a class="el" href="classttmath_1_1_big.html">Big</a>&lt; exp, man &gt; &amp;ss2, bool round=true)</td></tr>
<tr class="separator:a57fa951410244551c3449910fe129d64"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abdd4b5bd37f010f2c3dc6e770827693d"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classttmath_1_1_big.html#abdd4b5bd37f010f2c3dc6e770827693d">Mod</a> (const <a class="el" href="classttmath_1_1_big.html">Big</a>&lt; exp, man &gt; &amp;ss2)</td></tr>
<tr class="separator:abdd4b5bd37f010f2c3dc6e770827693d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab60bb059c684494fd91bb9d257ebd9c6"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classttmath_1_1_big.html#ab60bb059c684494fd91bb9d257ebd9c6">Mod2</a> () const</td></tr>
<tr class="separator:ab60bb059c684494fd91bb9d257ebd9c6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a04e13b29e821c17842c19e6fa8339037"><td class="memTemplParams" colspan="2">template&lt;uint pow_size&gt; </td></tr>
<tr class="memitem:a04e13b29e821c17842c19e6fa8339037"><td class="memTemplItemLeft" align="right" valign="top"><a class="el" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a>&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classttmath_1_1_big.html#a04e13b29e821c17842c19e6fa8339037">Pow</a> (<a class="el" href="classttmath_1_1_u_int.html">UInt</a>&lt; pow_size &gt; pow)</td></tr>
<tr class="separator:a04e13b29e821c17842c19e6fa8339037"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acd54dedacff08e88e214eaf37cef7bd7"><td class="memTemplParams" colspan="2">template&lt;uint pow_size&gt; </td></tr>
<tr class="memitem:acd54dedacff08e88e214eaf37cef7bd7"><td class="memTemplItemLeft" align="right" valign="top"><a class="el" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a>&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classttmath_1_1_big.html#acd54dedacff08e88e214eaf37cef7bd7">Pow</a> (<a class="el" href="classttmath_1_1_int.html">Int</a>&lt; pow_size &gt; pow)</td></tr>
<tr class="separator:acd54dedacff08e88e214eaf37cef7bd7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adddcbcf842625d2c59bd072cc8931d6f"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classttmath_1_1_big.html#adddcbcf842625d2c59bd072cc8931d6f">PowUInt</a> (<a class="el" href="classttmath_1_1_big.html">Big</a>&lt; exp, man &gt; pow)</td></tr>
<tr class="separator:adddcbcf842625d2c59bd072cc8931d6f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a52ea0acdfd8b1ea83073d18aec855a0e"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classttmath_1_1_big.html#a52ea0acdfd8b1ea83073d18aec855a0e">PowInt</a> (const <a class="el" href="classttmath_1_1_big.html">Big</a>&lt; exp, man &gt; &amp;pow)</td></tr>
<tr class="separator:a52ea0acdfd8b1ea83073d18aec855a0e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0963350876a5d4b23e9c6f1e021cfa2c"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classttmath_1_1_big.html#a0963350876a5d4b23e9c6f1e021cfa2c">PowFrac</a> (const <a class="el" href="classttmath_1_1_big.html">Big</a>&lt; exp, man &gt; &amp;pow)</td></tr>
<tr class="separator:a0963350876a5d4b23e9c6f1e021cfa2c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5143613c33850b40170b9d5b5c08c5f3"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classttmath_1_1_big.html#a5143613c33850b40170b9d5b5c08c5f3">Pow</a> (const <a class="el" href="classttmath_1_1_big.html">Big</a>&lt; exp, man &gt; &amp;pow)</td></tr>
<tr class="separator:a5143613c33850b40170b9d5b5c08c5f3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6a2dbb9846bbebd87393f2ea8f75911d"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classttmath_1_1_big.html#a6a2dbb9846bbebd87393f2ea8f75911d">Sqrt</a> ()</td></tr>
<tr class="separator:a6a2dbb9846bbebd87393f2ea8f75911d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2c2c7de54743b12c05f1bfea7b153eba"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classttmath_1_1_big.html#a2c2c7de54743b12c05f1bfea7b153eba">Exp</a> (const <a class="el" href="classttmath_1_1_big.html">Big</a>&lt; exp, man &gt; &amp;x)</td></tr>
<tr class="separator:a2c2c7de54743b12c05f1bfea7b153eba"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae6addbbd86cd8b9ed60d0afc8c80181c"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classttmath_1_1_big.html#ae6addbbd86cd8b9ed60d0afc8c80181c">Ln</a> (const <a class="el" href="classttmath_1_1_big.html">Big</a>&lt; exp, man &gt; &amp;x)</td></tr>
<tr class="separator:ae6addbbd86cd8b9ed60d0afc8c80181c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6a50f7bec2c05935c06bbe1dd43fa4ac"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classttmath_1_1_big.html#a6a50f7bec2c05935c06bbe1dd43fa4ac">Log</a> (const <a class="el" href="classttmath_1_1_big.html">Big</a>&lt; exp, man &gt; &amp;x, const <a class="el" href="classttmath_1_1_big.html">Big</a>&lt; exp, man &gt; &amp;base)</td></tr>
<tr class="separator:a6a50f7bec2c05935c06bbe1dd43fa4ac"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a961c89a45552dfac6d4a47e6e6d21106"><td class="memTemplParams" colspan="2">template&lt;uint another_exp, uint another_man&gt; </td></tr>
<tr class="memitem:a961c89a45552dfac6d4a47e6e6d21106"><td class="memTemplItemLeft" align="right" valign="top"><a class="el" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a>&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classttmath_1_1_big.html#a961c89a45552dfac6d4a47e6e6d21106">FromBig</a> (const <a class="el" href="classttmath_1_1_big.html">Big</a>&lt; another_exp, another_man &gt; &amp;another)</td></tr>
<tr class="separator:a961c89a45552dfac6d4a47e6e6d21106"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ada7e166f426b5adbd1e539040d5a5e14"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classttmath_1_1_big.html#ada7e166f426b5adbd1e539040d5a5e14">ToUInt</a> () const</td></tr>
<tr class="separator:ada7e166f426b5adbd1e539040d5a5e14"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a208511aaeacc80803434f80669fde9a9"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classttmath_1_1_big.html#a208511aaeacc80803434f80669fde9a9">ToUInt</a> (<a class="el" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a> &amp;result) const</td></tr>
<tr class="separator:a208511aaeacc80803434f80669fde9a9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2bf2c98f26adfd1386597f2b9f195d02"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespacettmath.html#a4b0a5dcba29a2c7a0abc8b4403a25ac4">sint</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classttmath_1_1_big.html#a2bf2c98f26adfd1386597f2b9f195d02">ToInt</a> () const</td></tr>
<tr class="separator:a2bf2c98f26adfd1386597f2b9f195d02"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a033eede8a51437c3d595ef7cab8aac32"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classttmath_1_1_big.html#a033eede8a51437c3d595ef7cab8aac32">ToInt</a> (<a class="el" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a> &amp;result) const</td></tr>
<tr class="separator:a033eede8a51437c3d595ef7cab8aac32"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a694c79746d5e9ff547b7b507b7a0a82d"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classttmath_1_1_big.html#a694c79746d5e9ff547b7b507b7a0a82d">ToInt</a> (<a class="el" href="namespacettmath.html#a4b0a5dcba29a2c7a0abc8b4403a25ac4">sint</a> &amp;result) const</td></tr>
<tr class="separator:a694c79746d5e9ff547b7b507b7a0a82d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad0996b6cc3bd87251ec2d946c7ec606a"><td class="memTemplParams" colspan="2">template&lt;uint int_size&gt; </td></tr>
<tr class="memitem:ad0996b6cc3bd87251ec2d946c7ec606a"><td class="memTemplItemLeft" align="right" valign="top"><a class="el" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a>&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classttmath_1_1_big.html#ad0996b6cc3bd87251ec2d946c7ec606a">ToUInt</a> (<a class="el" href="classttmath_1_1_u_int.html">UInt</a>&lt; int_size &gt; &amp;result) const</td></tr>
<tr class="separator:ad0996b6cc3bd87251ec2d946c7ec606a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7825c0764bf6b746be5f0775dc704f54"><td class="memTemplParams" colspan="2">template&lt;uint int_size&gt; </td></tr>
<tr class="memitem:a7825c0764bf6b746be5f0775dc704f54"><td class="memTemplItemLeft" align="right" valign="top"><a class="el" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a>&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classttmath_1_1_big.html#a7825c0764bf6b746be5f0775dc704f54">ToInt</a> (<a class="el" href="classttmath_1_1_u_int.html">UInt</a>&lt; int_size &gt; &amp;result) const</td></tr>
<tr class="separator:a7825c0764bf6b746be5f0775dc704f54"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab832ccd3ae1bceb85699542f441fa6ba"><td class="memTemplParams" colspan="2">template&lt;uint int_size&gt; </td></tr>
<tr class="memitem:ab832ccd3ae1bceb85699542f441fa6ba"><td class="memTemplItemLeft" align="right" valign="top"><a class="el" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a>&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classttmath_1_1_big.html#ab832ccd3ae1bceb85699542f441fa6ba">ToInt</a> (<a class="el" href="classttmath_1_1_int.html">Int</a>&lt; int_size &gt; &amp;result) const</td></tr>
<tr class="separator:ab832ccd3ae1bceb85699542f441fa6ba"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acae9e6888929068aecc5cca01126d3c5"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classttmath_1_1_big.html#acae9e6888929068aecc5cca01126d3c5">FromUInt</a> (<a class="el" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a> value)</td></tr>
<tr class="separator:acae9e6888929068aecc5cca01126d3c5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a56a6fff11059c5acd4e20cbb01f321c3"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classttmath_1_1_big.html#a56a6fff11059c5acd4e20cbb01f321c3">FromInt</a> (<a class="el" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a> value)</td></tr>
<tr class="separator:a56a6fff11059c5acd4e20cbb01f321c3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8757d0e23a961f99ce15fa6e844bc526"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classttmath_1_1_big.html#a8757d0e23a961f99ce15fa6e844bc526">FromInt</a> (<a class="el" href="namespacettmath.html#a4b0a5dcba29a2c7a0abc8b4403a25ac4">sint</a> value)</td></tr>
<tr class="separator:a8757d0e23a961f99ce15fa6e844bc526"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afd218703bd13ea24e9fe09398d826247"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classttmath_1_1_big.html#afd218703bd13ea24e9fe09398d826247">FromDouble</a> (double value)</td></tr>
<tr class="separator:afd218703bd13ea24e9fe09398d826247"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a448d79907dbc27e897d0f6c55ecde0b4"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classttmath_1_1_big.html#a448d79907dbc27e897d0f6c55ecde0b4">FromFloat</a> (float value)</td></tr>
<tr class="separator:a448d79907dbc27e897d0f6c55ecde0b4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3008dfb310b1580c45116f8c1d9ea6d9"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classttmath_1_1_big.html#a3008dfb310b1580c45116f8c1d9ea6d9">ToDouble</a> () const</td></tr>
<tr class="separator:a3008dfb310b1580c45116f8c1d9ea6d9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7983fae3bacfd7705c23cb509d781451"><td class="memItemLeft" align="right" valign="top">float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classttmath_1_1_big.html#a7983fae3bacfd7705c23cb509d781451">ToFloat</a> () const</td></tr>
<tr class="separator:a7983fae3bacfd7705c23cb509d781451"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6e6b6458935b167e3301c72c280b0670"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classttmath_1_1_big.html#a6e6b6458935b167e3301c72c280b0670">ToFloat</a> (float &amp;result) const</td></tr>
<tr class="separator:a6e6b6458935b167e3301c72c280b0670"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a047a2c4143d827b2e5820d0609639525"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classttmath_1_1_big.html#a047a2c4143d827b2e5820d0609639525">ToDouble</a> (double &amp;result) const</td></tr>
<tr class="separator:a047a2c4143d827b2e5820d0609639525"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae2818bdfc2f236628a17c9585c594ca4"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classttmath_1_1_big.html">Big</a>&lt; exp, man &gt; &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classttmath_1_1_big.html#ae2818bdfc2f236628a17c9585c594ca4">operator=</a> (<a class="el" href="namespacettmath.html#a4b0a5dcba29a2c7a0abc8b4403a25ac4">sint</a> value)</td></tr>
<tr class="separator:ae2818bdfc2f236628a17c9585c594ca4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a71d39cd10c72a302dc3f786b76a4b790"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classttmath_1_1_big.html">Big</a>&lt; exp, man &gt; &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classttmath_1_1_big.html#a71d39cd10c72a302dc3f786b76a4b790">operator=</a> (<a class="el" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a> value)</td></tr>
<tr class="separator:a71d39cd10c72a302dc3f786b76a4b790"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab5fd85926cbbebae5b5ccfe5249a446b"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classttmath_1_1_big.html">Big</a>&lt; exp, man &gt; &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classttmath_1_1_big.html#ab5fd85926cbbebae5b5ccfe5249a446b">operator=</a> (float value)</td></tr>
<tr class="separator:ab5fd85926cbbebae5b5ccfe5249a446b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a90668305264d2c305bb0642f353da519"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classttmath_1_1_big.html">Big</a>&lt; exp, man &gt; &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classttmath_1_1_big.html#a90668305264d2c305bb0642f353da519">operator=</a> (double value)</td></tr>
<tr class="separator:a90668305264d2c305bb0642f353da519"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5036639819aa811aa9dba41c9fdd7654"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classttmath_1_1_big.html#a5036639819aa811aa9dba41c9fdd7654">Big</a> (<a class="el" href="namespacettmath.html#a4b0a5dcba29a2c7a0abc8b4403a25ac4">sint</a> value)</td></tr>
<tr class="separator:a5036639819aa811aa9dba41c9fdd7654"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a960b3d4052c7b8f8c3a504fe6671b193"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classttmath_1_1_big.html#a960b3d4052c7b8f8c3a504fe6671b193">Big</a> (<a class="el" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a> value)</td></tr>
<tr class="separator:a960b3d4052c7b8f8c3a504fe6671b193"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4a63cbcb29c8afc0aa17dcf160b5c500"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classttmath_1_1_big.html#a4a63cbcb29c8afc0aa17dcf160b5c500">Big</a> (double value)</td></tr>
<tr class="separator:a4a63cbcb29c8afc0aa17dcf160b5c500"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5e052f495cf95abf16c322d72cf752bf"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classttmath_1_1_big.html#a5e052f495cf95abf16c322d72cf752bf">Big</a> (float value)</td></tr>
<tr class="separator:a5e052f495cf95abf16c322d72cf752bf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a26c0188d1e97b54804c1c87706722dd8"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classttmath_1_1_big.html#a26c0188d1e97b54804c1c87706722dd8">ToUInt</a> (unsigned int &amp;result) const</td></tr>
<tr class="separator:a26c0188d1e97b54804c1c87706722dd8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a48792b7753dc6e5d690bf8a578463bdf"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classttmath_1_1_big.html#a48792b7753dc6e5d690bf8a578463bdf">ToInt</a> (unsigned int &amp;result) const</td></tr>
<tr class="separator:a48792b7753dc6e5d690bf8a578463bdf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7464feaf986422898a2dd1e66e73784f"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classttmath_1_1_big.html#a7464feaf986422898a2dd1e66e73784f">ToInt</a> (signed int &amp;result) const</td></tr>
<tr class="separator:a7464feaf986422898a2dd1e66e73784f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a51a21618534f3f4c0d1b7d68ba5c2090"><td class="memItemLeft" align="right" valign="top"><a id="a51a21618534f3f4c0d1b7d68ba5c2090"></a>
<a class="el" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a>&#160;</td><td class="memItemRight" valign="bottom"><b>FromUInt</b> (unsigned int value)</td></tr>
<tr class="separator:a51a21618534f3f4c0d1b7d68ba5c2090"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9ae195cc7a5bf0647d6d046d37d21bba"><td class="memItemLeft" align="right" valign="top"><a id="a9ae195cc7a5bf0647d6d046d37d21bba"></a>
<a class="el" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a>&#160;</td><td class="memItemRight" valign="bottom"><b>FromInt</b> (unsigned int value)</td></tr>
<tr class="separator:a9ae195cc7a5bf0647d6d046d37d21bba"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae7565f88789633fa0a521bcfa57cd749"><td class="memItemLeft" align="right" valign="top"><a id="ae7565f88789633fa0a521bcfa57cd749"></a>
<a class="el" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a>&#160;</td><td class="memItemRight" valign="bottom"><b>FromInt</b> (signed int value)</td></tr>
<tr class="separator:ae7565f88789633fa0a521bcfa57cd749"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac641d85a2570d13d2520a88ba62d8f6e"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classttmath_1_1_big.html">Big</a>&lt; exp, man &gt; &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classttmath_1_1_big.html#ac641d85a2570d13d2520a88ba62d8f6e">operator=</a> (unsigned int value)</td></tr>
<tr class="separator:ac641d85a2570d13d2520a88ba62d8f6e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afa533455acaccdefe31e4ce4580a8f78"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classttmath_1_1_big.html#afa533455acaccdefe31e4ce4580a8f78">Big</a> (unsigned int value)</td></tr>
<tr class="separator:afa533455acaccdefe31e4ce4580a8f78"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abc832a11bd8421f42ee93c29b52f04b9"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classttmath_1_1_big.html">Big</a>&lt; exp, man &gt; &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classttmath_1_1_big.html#abc832a11bd8421f42ee93c29b52f04b9">operator=</a> (signed int value)</td></tr>
<tr class="separator:abc832a11bd8421f42ee93c29b52f04b9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a03bb399fd1b41237284e78689b861ff2"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classttmath_1_1_big.html#a03bb399fd1b41237284e78689b861ff2">Big</a> (signed int value)</td></tr>
<tr class="separator:a03bb399fd1b41237284e78689b861ff2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1051668083a766216ca3dc218d7dbf23"><td class="memTemplParams" colspan="2">template&lt;uint int_size&gt; </td></tr>
<tr class="memitem:a1051668083a766216ca3dc218d7dbf23"><td class="memTemplItemLeft" align="right" valign="top"><a class="el" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a>&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classttmath_1_1_big.html#a1051668083a766216ca3dc218d7dbf23">FromUInt</a> (<a class="el" href="classttmath_1_1_u_int.html">UInt</a>&lt; int_size &gt; value)</td></tr>
<tr class="separator:a1051668083a766216ca3dc218d7dbf23"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a619f1155c5a5919eb2be4effee15c851"><td class="memTemplParams" colspan="2">template&lt;uint int_size&gt; </td></tr>
<tr class="memitem:a619f1155c5a5919eb2be4effee15c851"><td class="memTemplItemLeft" align="right" valign="top"><a class="el" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a>&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classttmath_1_1_big.html#a619f1155c5a5919eb2be4effee15c851">FromInt</a> (const <a class="el" href="classttmath_1_1_u_int.html">UInt</a>&lt; int_size &gt; &amp;value)</td></tr>
<tr class="separator:a619f1155c5a5919eb2be4effee15c851"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abd656baf05f508405a599a82faadec49"><td class="memTemplParams" colspan="2">template&lt;uint int_size&gt; </td></tr>
<tr class="memitem:abd656baf05f508405a599a82faadec49"><td class="memTemplItemLeft" align="right" valign="top"><a class="el" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a>&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classttmath_1_1_big.html#abd656baf05f508405a599a82faadec49">FromInt</a> (<a class="el" href="classttmath_1_1_int.html">Int</a>&lt; int_size &gt; value)</td></tr>
<tr class="separator:abd656baf05f508405a599a82faadec49"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a111c5f0706fdbb30d2c1c83340e9563d"><td class="memTemplParams" colspan="2">template&lt;uint int_size&gt; </td></tr>
<tr class="memitem:a111c5f0706fdbb30d2c1c83340e9563d"><td class="memTemplItemLeft" align="right" valign="top"><a class="el" href="classttmath_1_1_big.html">Big</a>&lt; exp, man &gt; &amp;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classttmath_1_1_big.html#a111c5f0706fdbb30d2c1c83340e9563d">operator=</a> (const <a class="el" href="classttmath_1_1_int.html">Int</a>&lt; int_size &gt; &amp;value)</td></tr>
<tr class="separator:a111c5f0706fdbb30d2c1c83340e9563d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac5ec17e2b08ec58b77bd1d41bd5cf8d2"><td class="memTemplParams" colspan="2">template&lt;uint int_size&gt; </td></tr>
<tr class="memitem:ac5ec17e2b08ec58b77bd1d41bd5cf8d2"><td class="memTemplItemLeft" align="right" valign="top">&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classttmath_1_1_big.html#ac5ec17e2b08ec58b77bd1d41bd5cf8d2">Big</a> (const <a class="el" href="classttmath_1_1_int.html">Int</a>&lt; int_size &gt; &amp;value)</td></tr>
<tr class="separator:ac5ec17e2b08ec58b77bd1d41bd5cf8d2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1f87240330d286478cbb1a80f857bbaf"><td class="memTemplParams" colspan="2">template&lt;uint int_size&gt; </td></tr>
<tr class="memitem:a1f87240330d286478cbb1a80f857bbaf"><td class="memTemplItemLeft" align="right" valign="top"><a class="el" href="classttmath_1_1_big.html">Big</a>&lt; exp, man &gt; &amp;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classttmath_1_1_big.html#a1f87240330d286478cbb1a80f857bbaf">operator=</a> (const <a class="el" href="classttmath_1_1_u_int.html">UInt</a>&lt; int_size &gt; &amp;value)</td></tr>
<tr class="separator:a1f87240330d286478cbb1a80f857bbaf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa6cfe4e52a7a85a71e14b7226814eb46"><td class="memTemplParams" colspan="2">template&lt;uint int_size&gt; </td></tr>
<tr class="memitem:aa6cfe4e52a7a85a71e14b7226814eb46"><td class="memTemplItemLeft" align="right" valign="top">&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classttmath_1_1_big.html#aa6cfe4e52a7a85a71e14b7226814eb46">Big</a> (const <a class="el" href="classttmath_1_1_u_int.html">UInt</a>&lt; int_size &gt; &amp;value)</td></tr>
<tr class="separator:aa6cfe4e52a7a85a71e14b7226814eb46"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab448e5aab3cd9ec3cba573cba2a0ec9f"><td class="memTemplParams" colspan="2">template&lt;uint another_exp, uint another_man&gt; </td></tr>
<tr class="memitem:ab448e5aab3cd9ec3cba573cba2a0ec9f"><td class="memTemplItemLeft" align="right" valign="top"><a class="el" href="classttmath_1_1_big.html">Big</a>&lt; exp, man &gt; &amp;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classttmath_1_1_big.html#ab448e5aab3cd9ec3cba573cba2a0ec9f">operator=</a> (const <a class="el" href="classttmath_1_1_big.html">Big</a>&lt; another_exp, another_man &gt; &amp;value)</td></tr>
<tr class="separator:ab448e5aab3cd9ec3cba573cba2a0ec9f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6e6d6c539858b95828c386306c638f47"><td class="memTemplParams" colspan="2">template&lt;uint another_exp, uint another_man&gt; </td></tr>
<tr class="memitem:a6e6d6c539858b95828c386306c638f47"><td class="memTemplItemLeft" align="right" valign="top">&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classttmath_1_1_big.html#a6e6d6c539858b95828c386306c638f47">Big</a> (const <a class="el" href="classttmath_1_1_big.html">Big</a>&lt; another_exp, another_man &gt; &amp;value)</td></tr>
<tr class="separator:a6e6d6c539858b95828c386306c638f47"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af44096d7caaaa52ef6f5de03818e7eab"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classttmath_1_1_big.html#af44096d7caaaa52ef6f5de03818e7eab">Big</a> ()</td></tr>
<tr class="separator:af44096d7caaaa52ef6f5de03818e7eab"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a24763be7072f23d6d057de265516f551"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classttmath_1_1_big.html#a24763be7072f23d6d057de265516f551">~Big</a> ()</td></tr>
<tr class="separator:a24763be7072f23d6d057de265516f551"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1e9f5ae0f964d6492b6201d8c8b9e445"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classttmath_1_1_big.html">Big</a>&lt; exp, man &gt; &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classttmath_1_1_big.html#a1e9f5ae0f964d6492b6201d8c8b9e445">operator=</a> (const <a class="el" href="classttmath_1_1_big.html">Big</a>&lt; exp, man &gt; &amp;value)</td></tr>
<tr class="separator:a1e9f5ae0f964d6492b6201d8c8b9e445"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afb973e2f20e7ce89b161df73c6bea8aa"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classttmath_1_1_big.html#afb973e2f20e7ce89b161df73c6bea8aa">Big</a> (const <a class="el" href="classttmath_1_1_big.html">Big</a>&lt; exp, man &gt; &amp;value)</td></tr>
<tr class="separator:afb973e2f20e7ce89b161df73c6bea8aa"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3d8da6a88dda87845a13a13c8abfcfa4"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classttmath_1_1_big.html#a3d8da6a88dda87845a13a13c8abfcfa4">ToString</a> (std::string &amp;result, <a class="el" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a> base=10, bool scient=false, <a class="el" href="namespacettmath.html#a4b0a5dcba29a2c7a0abc8b4403a25ac4">sint</a> scient_from=15, <a class="el" href="namespacettmath.html#a4b0a5dcba29a2c7a0abc8b4403a25ac4">sint</a> round=-1, bool trim_zeroes=true, char comma='.') const</td></tr>
<tr class="separator:a3d8da6a88dda87845a13a13c8abfcfa4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a46a0a5b484d4cdb01d8c8f488037135b"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classttmath_1_1_big.html#a46a0a5b484d4cdb01d8c8f488037135b">ToString</a> (std::string &amp;result, const <a class="el" href="structttmath_1_1_conv.html">Conv</a> &amp;conv) const</td></tr>
<tr class="separator:a46a0a5b484d4cdb01d8c8f488037135b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa8ccdb8b4d9851038d35b42dfe8d5dcf"><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classttmath_1_1_big.html#aa8ccdb8b4d9851038d35b42dfe8d5dcf">ToString</a> (const <a class="el" href="structttmath_1_1_conv.html">Conv</a> &amp;conv) const</td></tr>
<tr class="separator:aa8ccdb8b4d9851038d35b42dfe8d5dcf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1e706c3bfa40fab6ff3957678e351750"><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classttmath_1_1_big.html#a1e706c3bfa40fab6ff3957678e351750">ToString</a> (<a class="el" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a> base=10) const</td></tr>
<tr class="separator:a1e706c3bfa40fab6ff3957678e351750"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa650c1d2064f7449e1c1cbefbd6d753e"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classttmath_1_1_big.html#aa650c1d2064f7449e1c1cbefbd6d753e">ToString</a> (std::wstring &amp;result, <a class="el" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a> base=10, bool scient=false, <a class="el" href="namespacettmath.html#a4b0a5dcba29a2c7a0abc8b4403a25ac4">sint</a> scient_from=15, <a class="el" href="namespacettmath.html#a4b0a5dcba29a2c7a0abc8b4403a25ac4">sint</a> round=-1, bool trim_zeroes=true, wchar_t comma='.') const</td></tr>
<tr class="separator:aa650c1d2064f7449e1c1cbefbd6d753e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a99f65f7af34a5974793b01836c70cca3"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classttmath_1_1_big.html#a99f65f7af34a5974793b01836c70cca3">ToString</a> (std::wstring &amp;result, const <a class="el" href="structttmath_1_1_conv.html">Conv</a> &amp;conv) const</td></tr>
<tr class="separator:a99f65f7af34a5974793b01836c70cca3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af73a550fc9a5e8fbfb93e44d3d5a0f61"><td class="memItemLeft" align="right" valign="top">std::wstring&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classttmath_1_1_big.html#af73a550fc9a5e8fbfb93e44d3d5a0f61">ToWString</a> (const <a class="el" href="structttmath_1_1_conv.html">Conv</a> &amp;conv) const</td></tr>
<tr class="separator:af73a550fc9a5e8fbfb93e44d3d5a0f61"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a607da160d527c93bdecfc96ff4d4f2df"><td class="memItemLeft" align="right" valign="top">std::wstring&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classttmath_1_1_big.html#a607da160d527c93bdecfc96ff4d4f2df">ToWString</a> (<a class="el" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a> base=10) const</td></tr>
<tr class="separator:a607da160d527c93bdecfc96ff4d4f2df"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acaf20ea76a22aa1717976fc5c415994b"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classttmath_1_1_big.html#acaf20ea76a22aa1717976fc5c415994b">FromString</a> (const char *source, <a class="el" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a> base=10, const char **after_source=0, bool *value_read=0)</td></tr>
<tr class="separator:acaf20ea76a22aa1717976fc5c415994b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5506d563b02f4c506aa04e313c79d62f"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classttmath_1_1_big.html#a5506d563b02f4c506aa04e313c79d62f">FromString</a> (const char *source, const <a class="el" href="structttmath_1_1_conv.html">Conv</a> &amp;conv, const char **after_source=0, bool *value_read=0)</td></tr>
<tr class="separator:a5506d563b02f4c506aa04e313c79d62f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3aa7b73969b57a1d50081fedf184c222"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classttmath_1_1_big.html#a3aa7b73969b57a1d50081fedf184c222">FromString</a> (const std::string &amp;string, <a class="el" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a> base=10, const char **after_source=0, bool *value_read=0)</td></tr>
<tr class="separator:a3aa7b73969b57a1d50081fedf184c222"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac33449ca94ff43cb02dde88ab6f3a18a"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classttmath_1_1_big.html#ac33449ca94ff43cb02dde88ab6f3a18a">FromString</a> (const std::string &amp;string, const <a class="el" href="structttmath_1_1_conv.html">Conv</a> &amp;conv, const char **after_source=0, bool *value_read=0)</td></tr>
<tr class="separator:ac33449ca94ff43cb02dde88ab6f3a18a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aefbb46b40a69874b432f7aec43f8d805"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classttmath_1_1_big.html#aefbb46b40a69874b432f7aec43f8d805">FromString</a> (const wchar_t *source, <a class="el" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a> base=10, const wchar_t **after_source=0, bool *value_read=0)</td></tr>
<tr class="separator:aefbb46b40a69874b432f7aec43f8d805"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acad4eec61a4e9b96ea604681b0428199"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classttmath_1_1_big.html#acad4eec61a4e9b96ea604681b0428199">FromString</a> (const wchar_t *source, const <a class="el" href="structttmath_1_1_conv.html">Conv</a> &amp;conv, const wchar_t **after_source=0, bool *value_read=0)</td></tr>
<tr class="separator:acad4eec61a4e9b96ea604681b0428199"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8ee2980e2a25efa1779756b3c69ee8a8"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classttmath_1_1_big.html#a8ee2980e2a25efa1779756b3c69ee8a8">FromString</a> (const std::wstring &amp;string, <a class="el" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a> base=10, const wchar_t **after_source=0, bool *value_read=0)</td></tr>
<tr class="separator:a8ee2980e2a25efa1779756b3c69ee8a8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad2ffa272f4b4f3297168c7c488991cd3"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classttmath_1_1_big.html#ad2ffa272f4b4f3297168c7c488991cd3">FromString</a> (const std::wstring &amp;string, const <a class="el" href="structttmath_1_1_conv.html">Conv</a> &amp;conv, const wchar_t **after_source=0, bool *value_read=0)</td></tr>
<tr class="separator:ad2ffa272f4b4f3297168c7c488991cd3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a77ac7df77125a3d5a66a50ce3d44eb83"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classttmath_1_1_big.html#a77ac7df77125a3d5a66a50ce3d44eb83">Big</a> (const char *string)</td></tr>
<tr class="separator:a77ac7df77125a3d5a66a50ce3d44eb83"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a84070489fc71cd69d0e041f2b20d0616"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classttmath_1_1_big.html#a84070489fc71cd69d0e041f2b20d0616">Big</a> (const std::string &amp;string)</td></tr>
<tr class="separator:a84070489fc71cd69d0e041f2b20d0616"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abbd06a120afabc0e96daf310ed430e53"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classttmath_1_1_big.html">Big</a>&lt; exp, man &gt; &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classttmath_1_1_big.html#abbd06a120afabc0e96daf310ed430e53">operator=</a> (const char *string)</td></tr>
<tr class="separator:abbd06a120afabc0e96daf310ed430e53"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a50c6e79d63ff6ee2a72a27f0e98121c4"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classttmath_1_1_big.html">Big</a>&lt; exp, man &gt; &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classttmath_1_1_big.html#a50c6e79d63ff6ee2a72a27f0e98121c4">operator=</a> (const std::string &amp;string)</td></tr>
<tr class="separator:a50c6e79d63ff6ee2a72a27f0e98121c4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a58f72e5345f932653619cc463f814bbb"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classttmath_1_1_big.html#a58f72e5345f932653619cc463f814bbb">Big</a> (const wchar_t *string)</td></tr>
<tr class="separator:a58f72e5345f932653619cc463f814bbb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9b1c08752b17d93cf5a11493177869bf"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classttmath_1_1_big.html#a9b1c08752b17d93cf5a11493177869bf">Big</a> (const std::wstring &amp;string)</td></tr>
<tr class="separator:a9b1c08752b17d93cf5a11493177869bf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa42b85559280aa8565268423b95a5f0a"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classttmath_1_1_big.html">Big</a>&lt; exp, man &gt; &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classttmath_1_1_big.html#aa42b85559280aa8565268423b95a5f0a">operator=</a> (const wchar_t *string)</td></tr>
<tr class="separator:aa42b85559280aa8565268423b95a5f0a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a72fb088166c205c7c7e6b85d3f8773de"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classttmath_1_1_big.html">Big</a>&lt; exp, man &gt; &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classttmath_1_1_big.html#a72fb088166c205c7c7e6b85d3f8773de">operator=</a> (const std::wstring &amp;string)</td></tr>
<tr class="separator:a72fb088166c205c7c7e6b85d3f8773de"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a591311e9b21e4c6dc5ae8e6140e1a7f6"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classttmath_1_1_big.html#a591311e9b21e4c6dc5ae8e6140e1a7f6">SmallerWithoutSignThan</a> (const <a class="el" href="classttmath_1_1_big.html">Big</a>&lt; exp, man &gt; &amp;ss2) const</td></tr>
<tr class="separator:a591311e9b21e4c6dc5ae8e6140e1a7f6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8b97269748f5897406ce4d8cecbca432"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classttmath_1_1_big.html#a8b97269748f5897406ce4d8cecbca432">GreaterWithoutSignThan</a> (const <a class="el" href="classttmath_1_1_big.html">Big</a>&lt; exp, man &gt; &amp;ss2) const</td></tr>
<tr class="separator:a8b97269748f5897406ce4d8cecbca432"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af74a3fa21ce1e4a4fb308a34340fb5b0"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classttmath_1_1_big.html#af74a3fa21ce1e4a4fb308a34340fb5b0">EqualWithoutSign</a> (const <a class="el" href="classttmath_1_1_big.html">Big</a>&lt; exp, man &gt; &amp;ss2) const</td></tr>
<tr class="separator:af74a3fa21ce1e4a4fb308a34340fb5b0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9e5f713022a080ba970221d9be11880f"><td class="memItemLeft" align="right" valign="top"><a id="a9e5f713022a080ba970221d9be11880f"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>operator&lt;</b> (const <a class="el" href="classttmath_1_1_big.html">Big</a>&lt; exp, man &gt; &amp;ss2) const</td></tr>
<tr class="separator:a9e5f713022a080ba970221d9be11880f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab0bdc1090bc0a5fb09a5a8a30a31b206"><td class="memItemLeft" align="right" valign="top"><a id="ab0bdc1090bc0a5fb09a5a8a30a31b206"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>operator==</b> (const <a class="el" href="classttmath_1_1_big.html">Big</a>&lt; exp, man &gt; &amp;ss2) const</td></tr>
<tr class="separator:ab0bdc1090bc0a5fb09a5a8a30a31b206"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6c3c0364ef00cc975bfd1d01b556f222"><td class="memItemLeft" align="right" valign="top"><a id="a6c3c0364ef00cc975bfd1d01b556f222"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>operator&gt;</b> (const <a class="el" href="classttmath_1_1_big.html">Big</a>&lt; exp, man &gt; &amp;ss2) const</td></tr>
<tr class="separator:a6c3c0364ef00cc975bfd1d01b556f222"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac9aaf514eb4896f65417d084f73e7a40"><td class="memItemLeft" align="right" valign="top"><a id="ac9aaf514eb4896f65417d084f73e7a40"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>operator&gt;=</b> (const <a class="el" href="classttmath_1_1_big.html">Big</a>&lt; exp, man &gt; &amp;ss2) const</td></tr>
<tr class="separator:ac9aaf514eb4896f65417d084f73e7a40"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7dbbbf1c48ae71f73a908bc136bfc09b"><td class="memItemLeft" align="right" valign="top"><a id="a7dbbbf1c48ae71f73a908bc136bfc09b"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>operator&lt;=</b> (const <a class="el" href="classttmath_1_1_big.html">Big</a>&lt; exp, man &gt; &amp;ss2) const</td></tr>
<tr class="separator:a7dbbbf1c48ae71f73a908bc136bfc09b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a54176d2da59c2f00b0d2f3afea8026bf"><td class="memItemLeft" align="right" valign="top"><a id="a54176d2da59c2f00b0d2f3afea8026bf"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>operator!=</b> (const <a class="el" href="classttmath_1_1_big.html">Big</a>&lt; exp, man &gt; &amp;ss2) const</td></tr>
<tr class="separator:a54176d2da59c2f00b0d2f3afea8026bf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aaf5468225cd5060bf2e3a31532933a72"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classttmath_1_1_big.html">Big</a>&lt; exp, man &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classttmath_1_1_big.html#aaf5468225cd5060bf2e3a31532933a72">operator-</a> () const</td></tr>
<tr class="separator:aaf5468225cd5060bf2e3a31532933a72"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acce2fe365e6fe731d478b03791bb0e17"><td class="memItemLeft" align="right" valign="top"><a id="acce2fe365e6fe731d478b03791bb0e17"></a>
<a class="el" href="classttmath_1_1_big.html">Big</a>&lt; exp, man &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>operator-</b> (const <a class="el" href="classttmath_1_1_big.html">Big</a>&lt; exp, man &gt; &amp;ss2) const</td></tr>
<tr class="separator:acce2fe365e6fe731d478b03791bb0e17"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a35dd072a17e773e01572069b2a59f35d"><td class="memItemLeft" align="right" valign="top"><a id="a35dd072a17e773e01572069b2a59f35d"></a>
<a class="el" href="classttmath_1_1_big.html">Big</a>&lt; exp, man &gt; &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>operator-=</b> (const <a class="el" href="classttmath_1_1_big.html">Big</a>&lt; exp, man &gt; &amp;ss2)</td></tr>
<tr class="separator:a35dd072a17e773e01572069b2a59f35d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab0607d7224752b92dbf2a987d8934041"><td class="memItemLeft" align="right" valign="top"><a id="ab0607d7224752b92dbf2a987d8934041"></a>
<a class="el" href="classttmath_1_1_big.html">Big</a>&lt; exp, man &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>operator+</b> (const <a class="el" href="classttmath_1_1_big.html">Big</a>&lt; exp, man &gt; &amp;ss2) const</td></tr>
<tr class="separator:ab0607d7224752b92dbf2a987d8934041"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3819c94350e2bf4d8d9da9b0fdf37383"><td class="memItemLeft" align="right" valign="top"><a id="a3819c94350e2bf4d8d9da9b0fdf37383"></a>
<a class="el" href="classttmath_1_1_big.html">Big</a>&lt; exp, man &gt; &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>operator+=</b> (const <a class="el" href="classttmath_1_1_big.html">Big</a>&lt; exp, man &gt; &amp;ss2)</td></tr>
<tr class="separator:a3819c94350e2bf4d8d9da9b0fdf37383"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa211d51f69c106d8b71e622dc38de291"><td class="memItemLeft" align="right" valign="top"><a id="aa211d51f69c106d8b71e622dc38de291"></a>
<a class="el" href="classttmath_1_1_big.html">Big</a>&lt; exp, man &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>operator *</b> (const <a class="el" href="classttmath_1_1_big.html">Big</a>&lt; exp, man &gt; &amp;ss2) const</td></tr>
<tr class="separator:aa211d51f69c106d8b71e622dc38de291"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a237a8d3eeddb5de377aecf8ce06b2938"><td class="memItemLeft" align="right" valign="top"><a id="a237a8d3eeddb5de377aecf8ce06b2938"></a>
<a class="el" href="classttmath_1_1_big.html">Big</a>&lt; exp, man &gt; &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>operator *=</b> (const <a class="el" href="classttmath_1_1_big.html">Big</a>&lt; exp, man &gt; &amp;ss2)</td></tr>
<tr class="separator:a237a8d3eeddb5de377aecf8ce06b2938"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6606be77fee7f310f6911111902d1c3f"><td class="memItemLeft" align="right" valign="top"><a id="a6606be77fee7f310f6911111902d1c3f"></a>
<a class="el" href="classttmath_1_1_big.html">Big</a>&lt; exp, man &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>operator/</b> (const <a class="el" href="classttmath_1_1_big.html">Big</a>&lt; exp, man &gt; &amp;ss2) const</td></tr>
<tr class="separator:a6606be77fee7f310f6911111902d1c3f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a80e655cf2435f80074ea0c2018ac2d8e"><td class="memItemLeft" align="right" valign="top"><a id="a80e655cf2435f80074ea0c2018ac2d8e"></a>
<a class="el" href="classttmath_1_1_big.html">Big</a>&lt; exp, man &gt; &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>operator/=</b> (const <a class="el" href="classttmath_1_1_big.html">Big</a>&lt; exp, man &gt; &amp;ss2)</td></tr>
<tr class="separator:a80e655cf2435f80074ea0c2018ac2d8e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac26abc00889171efdd2afa61454567c9"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classttmath_1_1_big.html">Big</a>&lt; exp, man &gt; &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classttmath_1_1_big.html#ac26abc00889171efdd2afa61454567c9">operator++</a> ()</td></tr>
<tr class="separator:ac26abc00889171efdd2afa61454567c9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac60dd6aef7757f1232477a89b41edae8"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classttmath_1_1_big.html">Big</a>&lt; exp, man &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classttmath_1_1_big.html#ac60dd6aef7757f1232477a89b41edae8">operator++</a> (int)</td></tr>
<tr class="separator:ac60dd6aef7757f1232477a89b41edae8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae47e5dad0c29232ad6f74e0a28fc6760"><td class="memItemLeft" align="right" valign="top"><a id="ae47e5dad0c29232ad6f74e0a28fc6760"></a>
<a class="el" href="classttmath_1_1_big.html">Big</a>&lt; exp, man &gt; &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>operator--</b> ()</td></tr>
<tr class="separator:ae47e5dad0c29232ad6f74e0a28fc6760"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a438961b9ca6c6f61504c59ce3231a9b5"><td class="memItemLeft" align="right" valign="top"><a id="a438961b9ca6c6f61504c59ce3231a9b5"></a>
<a class="el" href="classttmath_1_1_big.html">Big</a>&lt; exp, man &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>operator--</b> (int)</td></tr>
<tr class="separator:a438961b9ca6c6f61504c59ce3231a9b5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9e15cbcd6ebc80d00887fea7396c77d5"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classttmath_1_1_big.html">Big</a>&lt; exp, man &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classttmath_1_1_big.html#a9e15cbcd6ebc80d00887fea7396c77d5">operator &amp;</a> (const <a class="el" href="classttmath_1_1_big.html">Big</a>&lt; exp, man &gt; &amp;p2) const</td></tr>
<tr class="separator:a9e15cbcd6ebc80d00887fea7396c77d5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8fd4b40b668635f0f27b2f20ed46c531"><td class="memItemLeft" align="right" valign="top"><a id="a8fd4b40b668635f0f27b2f20ed46c531"></a>
<a class="el" href="classttmath_1_1_big.html">Big</a>&lt; exp, man &gt; &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>operator&amp;=</b> (const <a class="el" href="classttmath_1_1_big.html">Big</a>&lt; exp, man &gt; &amp;p2)</td></tr>
<tr class="separator:a8fd4b40b668635f0f27b2f20ed46c531"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abd541d513343839692818b64e581da17"><td class="memItemLeft" align="right" valign="top"><a id="abd541d513343839692818b64e581da17"></a>
<a class="el" href="classttmath_1_1_big.html">Big</a>&lt; exp, man &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>operator|</b> (const <a class="el" href="classttmath_1_1_big.html">Big</a>&lt; exp, man &gt; &amp;p2) const</td></tr>
<tr class="separator:abd541d513343839692818b64e581da17"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a39eae9671c4fda9a53f55cf915817e55"><td class="memItemLeft" align="right" valign="top"><a id="a39eae9671c4fda9a53f55cf915817e55"></a>
<a class="el" href="classttmath_1_1_big.html">Big</a>&lt; exp, man &gt; &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>operator|=</b> (const <a class="el" href="classttmath_1_1_big.html">Big</a>&lt; exp, man &gt; &amp;p2)</td></tr>
<tr class="separator:a39eae9671c4fda9a53f55cf915817e55"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a82bcc5c6fcd3fdffb0a8a3a7a7ce27d9"><td class="memItemLeft" align="right" valign="top"><a id="a82bcc5c6fcd3fdffb0a8a3a7a7ce27d9"></a>
<a class="el" href="classttmath_1_1_big.html">Big</a>&lt; exp, man &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>operator^</b> (const <a class="el" href="classttmath_1_1_big.html">Big</a>&lt; exp, man &gt; &amp;p2) const</td></tr>
<tr class="separator:a82bcc5c6fcd3fdffb0a8a3a7a7ce27d9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae63961c76e460441e38b6b629de1d742"><td class="memItemLeft" align="right" valign="top"><a id="ae63961c76e460441e38b6b629de1d742"></a>
<a class="el" href="classttmath_1_1_big.html">Big</a>&lt; exp, man &gt; &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>operator^=</b> (const <a class="el" href="classttmath_1_1_big.html">Big</a>&lt; exp, man &gt; &amp;p2)</td></tr>
<tr class="separator:ae63961c76e460441e38b6b629de1d742"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6ae448d3c59f28495d6951bd688ed485"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classttmath_1_1_big.html#a6ae448d3c59f28495d6951bd688ed485">SkipFraction</a> ()</td></tr>
<tr class="separator:a6ae448d3c59f28495d6951bd688ed485"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a05220c77273e378d803d25085a129e71"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classttmath_1_1_big.html#a05220c77273e378d803d25085a129e71">RemainFraction</a> ()</td></tr>
<tr class="separator:a05220c77273e378d803d25085a129e71"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa2709ec35d8cd0e39e1c72a834f2ee3c"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classttmath_1_1_big.html#aa2709ec35d8cd0e39e1c72a834f2ee3c">IsInteger</a> () const</td></tr>
<tr class="separator:aa2709ec35d8cd0e39e1c72a834f2ee3c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a01fd17a7bc3beda037834bb954460295"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classttmath_1_1_big.html#a01fd17a7bc3beda037834bb954460295">Round</a> ()</td></tr>
<tr class="separator:a01fd17a7bc3beda037834bb954460295"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:abb8fcf0f22ac6c88948be1ed7bde0c4d"><td class="memItemLeft" align="right" valign="top">static const char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classttmath_1_1_big.html#abb8fcf0f22ac6c88948be1ed7bde0c4d">LibTypeStr</a> ()</td></tr>
<tr class="separator:abb8fcf0f22ac6c88948be1ed7bde0c4d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa4a581c558d22d3c086819d5854f6cab"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="namespacettmath.html#a5c3bd12cd3d050852a60e022e5e12799">LibTypeCode</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classttmath_1_1_big.html#aa4a581c558d22d3c086819d5854f6cab">LibType</a> ()</td></tr>
<tr class="separator:aa4a581c558d22d3c086819d5854f6cab"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Data Fields</h2></td></tr>
<tr class="memitem:a05a09af0b5c66082ece956f010f45d72"><td class="memItemLeft" align="right" valign="top"><a id="a05a09af0b5c66082ece956f010f45d72"></a>
<a class="el" href="classttmath_1_1_int.html">Int</a>&lt; exp &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>exponent</b></td></tr>
<tr class="separator:a05a09af0b5c66082ece956f010f45d72"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa8bb76876aa56e88920553e8a80e30fc"><td class="memItemLeft" align="right" valign="top"><a id="aa8bb76876aa56e88920553e8a80e30fc"></a>
<a class="el" href="classttmath_1_1_u_int.html">UInt</a>&lt; man &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>mantissa</b></td></tr>
<tr class="separator:aa8bb76876aa56e88920553e8a80e30fc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a915f32de1e014f6ea0fbdfc313225f9e"><td class="memItemLeft" align="right" valign="top"><a id="a915f32de1e014f6ea0fbdfc313225f9e"></a>
unsigned char&#160;</td><td class="memItemRight" valign="bottom"><b>info</b></td></tr>
<tr class="separator:a915f32de1e014f6ea0fbdfc313225f9e"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="friends"></a>
Friends</h2></td></tr>
<tr class="memitem:a3301351c9140d9531c4875d4472542c7"><td class="memItemLeft" align="right" valign="top">class&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classttmath_1_1_big.html#a3301351c9140d9531c4875d4472542c7">Big&lt; exp-1, man &gt;</a></td></tr>
<tr class="separator:a3301351c9140d9531c4875d4472542c7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae6d2562c5a95d6e366bf5ef16f78ffc1"><td class="memItemLeft" align="right" valign="top">std::ostream &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classttmath_1_1_big.html#ae6d2562c5a95d6e366bf5ef16f78ffc1">operator&lt;&lt;</a> (std::ostream &amp;s, const <a class="el" href="classttmath_1_1_big.html">Big</a>&lt; exp, man &gt; &amp;l)</td></tr>
<tr class="separator:ae6d2562c5a95d6e366bf5ef16f78ffc1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a97f04b97ae04cf39464b9f0bb0bd3a81"><td class="memItemLeft" align="right" valign="top">std::wostream &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classttmath_1_1_big.html#a97f04b97ae04cf39464b9f0bb0bd3a81">operator&lt;&lt;</a> (std::wostream &amp;s, const <a class="el" href="classttmath_1_1_big.html">Big</a>&lt; exp, man &gt; &amp;l)</td></tr>
<tr class="separator:a97f04b97ae04cf39464b9f0bb0bd3a81"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad522ab4137846a3a9447eb5d60cca97d"><td class="memItemLeft" align="right" valign="top">std::istream &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classttmath_1_1_big.html#ad522ab4137846a3a9447eb5d60cca97d">operator&gt;&gt;</a> (std::istream &amp;s, <a class="el" href="classttmath_1_1_big.html">Big</a>&lt; exp, man &gt; &amp;l)</td></tr>
<tr class="separator:ad522ab4137846a3a9447eb5d60cca97d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a90c19948437cc5db98999d1d59a092ab"><td class="memItemLeft" align="right" valign="top">std::wistream &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classttmath_1_1_big.html#a90c19948437cc5db98999d1d59a092ab">operator&gt;&gt;</a> (std::wistream &amp;s, <a class="el" href="classttmath_1_1_big.html">Big</a>&lt; exp, man &gt; &amp;l)</td></tr>
<tr class="separator:a90c19948437cc5db98999d1d59a092ab"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><h3>template&lt;uint exp, uint man&gt;<br />
class ttmath::Big&lt; exp, man &gt;</h3>

<p><a class="el" href="classttmath_1_1_big.html" title="Big implements the floating point numbers.">Big</a> implements the floating point numbers. </p>

<p class="definition">Definition at line <a class="el" href="ttmathbig_8h_source.html#l00063">63</a> of file <a class="el" href="ttmathbig_8h_source.html">ttmathbig.h</a>.</p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="a5036639819aa811aa9dba41c9fdd7654"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5036639819aa811aa9dba41c9fdd7654">&#9670;&nbsp;</a></span>Big() <span class="overload">[1/15]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;uint exp, uint man&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classttmath_1_1_big.html">ttmath::Big</a>&lt; exp, man &gt;::<a class="el" href="classttmath_1_1_big.html">Big</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="namespacettmath.html#a4b0a5dcba29a2c7a0abc8b4403a25ac4">sint</a>&#160;</td>
          <td class="paramname"><em>value</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>a constructor for converting 'sint' to this class </p>

<p class="definition">Definition at line <a class="el" href="ttmathbig_8h_source.html#l03163">3163</a> of file <a class="el" href="ttmathbig_8h_source.html">ttmathbig.h</a>.</p>
<div class="fragment"><div class="line"><a name="l03164"></a><span class="lineno"> 3164</span>&#160;    {</div><div class="line"><a name="l03165"></a><span class="lineno"> 3165</span>&#160;        <a class="code" href="classttmath_1_1_big.html#a56a6fff11059c5acd4e20cbb01f321c3">FromInt</a>(value);</div><div class="line"><a name="l03166"></a><span class="lineno"> 3166</span>&#160;    }</div><div class="ttc" id="classttmath_1_1_big_html_a56a6fff11059c5acd4e20cbb01f321c3"><div class="ttname"><a href="classttmath_1_1_big.html#a56a6fff11059c5acd4e20cbb01f321c3">ttmath::Big::FromInt</a></div><div class="ttdeci">uint FromInt(uint value)</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l02564">ttmathbig.h:2564</a></div></div>
</div><!-- fragment -->
<p class="reference">References <a class="el" href="ttmathbig_8h_source.html#l02564">ttmath::Big&lt; exp, man &gt;::FromInt()</a>.</p>

</div>
</div>
<a id="a960b3d4052c7b8f8c3a504fe6671b193"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a960b3d4052c7b8f8c3a504fe6671b193">&#9670;&nbsp;</a></span>Big() <span class="overload">[2/15]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;uint exp, uint man&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classttmath_1_1_big.html">ttmath::Big</a>&lt; exp, man &gt;::<a class="el" href="classttmath_1_1_big.html">Big</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a>&#160;</td>
          <td class="paramname"><em>value</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>a constructor for converting 'uint' to this class </p>

<p class="definition">Definition at line <a class="el" href="ttmathbig_8h_source.html#l03171">3171</a> of file <a class="el" href="ttmathbig_8h_source.html">ttmathbig.h</a>.</p>
<div class="fragment"><div class="line"><a name="l03172"></a><span class="lineno"> 3172</span>&#160;    {   </div><div class="line"><a name="l03173"></a><span class="lineno"> 3173</span>&#160;        <a class="code" href="classttmath_1_1_big.html#acae9e6888929068aecc5cca01126d3c5">FromUInt</a>(value);</div><div class="line"><a name="l03174"></a><span class="lineno"> 3174</span>&#160;    }</div><div class="ttc" id="classttmath_1_1_big_html_acae9e6888929068aecc5cca01126d3c5"><div class="ttname"><a href="classttmath_1_1_big.html#acae9e6888929068aecc5cca01126d3c5">ttmath::Big::FromUInt</a></div><div class="ttdeci">uint FromUInt(uint value)</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l02538">ttmathbig.h:2538</a></div></div>
</div><!-- fragment -->
<p class="reference">References <a class="el" href="ttmathbig_8h_source.html#l02538">ttmath::Big&lt; exp, man &gt;::FromUInt()</a>.</p>

</div>
</div>
<a id="a4a63cbcb29c8afc0aa17dcf160b5c500"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4a63cbcb29c8afc0aa17dcf160b5c500">&#9670;&nbsp;</a></span>Big() <span class="overload">[3/15]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;uint exp, uint man&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classttmath_1_1_big.html">ttmath::Big</a>&lt; exp, man &gt;::<a class="el" href="classttmath_1_1_big.html">Big</a> </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>value</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>a constructor for converting 'double' to this class </p>

<p class="definition">Definition at line <a class="el" href="ttmathbig_8h_source.html#l03180">3180</a> of file <a class="el" href="ttmathbig_8h_source.html">ttmathbig.h</a>.</p>
<div class="fragment"><div class="line"><a name="l03181"></a><span class="lineno"> 3181</span>&#160;    {</div><div class="line"><a name="l03182"></a><span class="lineno"> 3182</span>&#160;        <a class="code" href="classttmath_1_1_big.html#afd218703bd13ea24e9fe09398d826247">FromDouble</a>(value);</div><div class="line"><a name="l03183"></a><span class="lineno"> 3183</span>&#160;    }</div><div class="ttc" id="classttmath_1_1_big_html_afd218703bd13ea24e9fe09398d826247"><div class="ttname"><a href="classttmath_1_1_big.html#afd218703bd13ea24e9fe09398d826247">ttmath::Big::FromDouble</a></div><div class="ttdeci">uint FromDouble(double value)</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l02736">ttmathbig.h:2736</a></div></div>
</div><!-- fragment -->
<p class="reference">References <a class="el" href="ttmathbig_8h_source.html#l02736">ttmath::Big&lt; exp, man &gt;::FromDouble()</a>.</p>

</div>
</div>
<a id="a5e052f495cf95abf16c322d72cf752bf"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5e052f495cf95abf16c322d72cf752bf">&#9670;&nbsp;</a></span>Big() <span class="overload">[4/15]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;uint exp, uint man&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classttmath_1_1_big.html">ttmath::Big</a>&lt; exp, man &gt;::<a class="el" href="classttmath_1_1_big.html">Big</a> </td>
          <td>(</td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>value</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>a constructor for converting 'float' to this class </p>

<p class="definition">Definition at line <a class="el" href="ttmathbig_8h_source.html#l03189">3189</a> of file <a class="el" href="ttmathbig_8h_source.html">ttmathbig.h</a>.</p>
<div class="fragment"><div class="line"><a name="l03190"></a><span class="lineno"> 3190</span>&#160;    {</div><div class="line"><a name="l03191"></a><span class="lineno"> 3191</span>&#160;        <a class="code" href="classttmath_1_1_big.html#a448d79907dbc27e897d0f6c55ecde0b4">FromFloat</a>(value);</div><div class="line"><a name="l03192"></a><span class="lineno"> 3192</span>&#160;    }</div><div class="ttc" id="classttmath_1_1_big_html_a448d79907dbc27e897d0f6c55ecde0b4"><div class="ttname"><a href="classttmath_1_1_big.html#a448d79907dbc27e897d0f6c55ecde0b4">ttmath::Big::FromFloat</a></div><div class="ttdeci">uint FromFloat(float value)</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l02833">ttmathbig.h:2833</a></div></div>
</div><!-- fragment -->
<p class="reference">References <a class="el" href="ttmathbig_8h_source.html#l02833">ttmath::Big&lt; exp, man &gt;::FromFloat()</a>.</p>

</div>
</div>
<a id="afa533455acaccdefe31e4ce4580a8f78"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afa533455acaccdefe31e4ce4580a8f78">&#9670;&nbsp;</a></span>Big() <span class="overload">[5/15]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;uint exp, uint man&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classttmath_1_1_big.html">ttmath::Big</a>&lt; exp, man &gt;::<a class="el" href="classttmath_1_1_big.html">Big</a> </td>
          <td>(</td>
          <td class="paramtype">unsigned int&#160;</td>
          <td class="paramname"><em>value</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>a constructor for converting 32 bit unsigned int to this class this constructor is created only on a 64bit platform*** </p>

<p class="definition">Definition at line <a class="el" href="ttmathbig_8h_source.html#l03470">3470</a> of file <a class="el" href="ttmathbig_8h_source.html">ttmathbig.h</a>.</p>
<div class="fragment"><div class="line"><a name="l03471"></a><span class="lineno"> 3471</span>&#160;    {</div><div class="line"><a name="l03472"></a><span class="lineno"> 3472</span>&#160;        <a class="code" href="classttmath_1_1_big.html#acae9e6888929068aecc5cca01126d3c5">FromUInt</a>(value);</div><div class="line"><a name="l03473"></a><span class="lineno"> 3473</span>&#160;    }</div><div class="ttc" id="classttmath_1_1_big_html_acae9e6888929068aecc5cca01126d3c5"><div class="ttname"><a href="classttmath_1_1_big.html#acae9e6888929068aecc5cca01126d3c5">ttmath::Big::FromUInt</a></div><div class="ttdeci">uint FromUInt(uint value)</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l02538">ttmathbig.h:2538</a></div></div>
</div><!-- fragment -->
<p class="reference">References <a class="el" href="ttmathbig_8h_source.html#l02538">ttmath::Big&lt; exp, man &gt;::FromUInt()</a>.</p>

</div>
</div>
<a id="a03bb399fd1b41237284e78689b861ff2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a03bb399fd1b41237284e78689b861ff2">&#9670;&nbsp;</a></span>Big() <span class="overload">[6/15]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;uint exp, uint man&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classttmath_1_1_big.html">ttmath::Big</a>&lt; exp, man &gt;::<a class="el" href="classttmath_1_1_big.html">Big</a> </td>
          <td>(</td>
          <td class="paramtype">signed int&#160;</td>
          <td class="paramname"><em>value</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>a constructor for converting 32 bit signed int to this class this constructor is created only on a 64bit platform*** </p>

<p class="definition">Definition at line <a class="el" href="ttmathbig_8h_source.html#l03492">3492</a> of file <a class="el" href="ttmathbig_8h_source.html">ttmathbig.h</a>.</p>
<div class="fragment"><div class="line"><a name="l03493"></a><span class="lineno"> 3493</span>&#160;    {</div><div class="line"><a name="l03494"></a><span class="lineno"> 3494</span>&#160;        <a class="code" href="classttmath_1_1_big.html#a56a6fff11059c5acd4e20cbb01f321c3">FromInt</a>(value);</div><div class="line"><a name="l03495"></a><span class="lineno"> 3495</span>&#160;    }</div><div class="ttc" id="classttmath_1_1_big_html_a56a6fff11059c5acd4e20cbb01f321c3"><div class="ttname"><a href="classttmath_1_1_big.html#a56a6fff11059c5acd4e20cbb01f321c3">ttmath::Big::FromInt</a></div><div class="ttdeci">uint FromInt(uint value)</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l02564">ttmathbig.h:2564</a></div></div>
</div><!-- fragment -->
<p class="reference">References <a class="el" href="ttmathbig_8h_source.html#l02564">ttmath::Big&lt; exp, man &gt;::FromInt()</a>.</p>

</div>
</div>
<a id="ac5ec17e2b08ec58b77bd1d41bd5cf8d2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac5ec17e2b08ec58b77bd1d41bd5cf8d2">&#9670;&nbsp;</a></span>Big() <span class="overload">[7/15]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;uint exp, uint man&gt; </div>
<div class="memtemplate">
template&lt;uint int_size&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classttmath_1_1_big.html">ttmath::Big</a>&lt; exp, man &gt;::<a class="el" href="classttmath_1_1_big.html">Big</a> </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classttmath_1_1_int.html">Int</a>&lt; int_size &gt; &amp;&#160;</td>
          <td class="paramname"><em>value</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>a constructor for converting from 'Int&lt;int_size&gt;' to this class </p>

<p class="definition">Definition at line <a class="el" href="ttmathbig_8h_source.html#l03598">3598</a> of file <a class="el" href="ttmathbig_8h_source.html">ttmathbig.h</a>.</p>
<div class="fragment"><div class="line"><a name="l03599"></a><span class="lineno"> 3599</span>&#160;    {</div><div class="line"><a name="l03600"></a><span class="lineno"> 3600</span>&#160;        <a class="code" href="classttmath_1_1_big.html#a56a6fff11059c5acd4e20cbb01f321c3">FromInt</a>(value);</div><div class="line"><a name="l03601"></a><span class="lineno"> 3601</span>&#160;    }</div><div class="ttc" id="classttmath_1_1_big_html_a56a6fff11059c5acd4e20cbb01f321c3"><div class="ttname"><a href="classttmath_1_1_big.html#a56a6fff11059c5acd4e20cbb01f321c3">ttmath::Big::FromInt</a></div><div class="ttdeci">uint FromInt(uint value)</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l02564">ttmathbig.h:2564</a></div></div>
</div><!-- fragment -->
<p class="reference">References <a class="el" href="ttmathbig_8h_source.html#l02564">ttmath::Big&lt; exp, man &gt;::FromInt()</a>.</p>

</div>
</div>
<a id="aa6cfe4e52a7a85a71e14b7226814eb46"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa6cfe4e52a7a85a71e14b7226814eb46">&#9670;&nbsp;</a></span>Big() <span class="overload">[8/15]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;uint exp, uint man&gt; </div>
<div class="memtemplate">
template&lt;uint int_size&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classttmath_1_1_big.html">ttmath::Big</a>&lt; exp, man &gt;::<a class="el" href="classttmath_1_1_big.html">Big</a> </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classttmath_1_1_u_int.html">UInt</a>&lt; int_size &gt; &amp;&#160;</td>
          <td class="paramname"><em>value</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>a constructor for converting from 'UInt&lt;int_size&gt;' to this class </p>

<p class="definition">Definition at line <a class="el" href="ttmathbig_8h_source.html#l03620">3620</a> of file <a class="el" href="ttmathbig_8h_source.html">ttmathbig.h</a>.</p>
<div class="fragment"><div class="line"><a name="l03621"></a><span class="lineno"> 3621</span>&#160;    {</div><div class="line"><a name="l03622"></a><span class="lineno"> 3622</span>&#160;        <a class="code" href="classttmath_1_1_big.html#acae9e6888929068aecc5cca01126d3c5">FromUInt</a>(value);</div><div class="line"><a name="l03623"></a><span class="lineno"> 3623</span>&#160;    }</div><div class="ttc" id="classttmath_1_1_big_html_acae9e6888929068aecc5cca01126d3c5"><div class="ttname"><a href="classttmath_1_1_big.html#acae9e6888929068aecc5cca01126d3c5">ttmath::Big::FromUInt</a></div><div class="ttdeci">uint FromUInt(uint value)</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l02538">ttmathbig.h:2538</a></div></div>
</div><!-- fragment -->
<p class="reference">References <a class="el" href="ttmathbig_8h_source.html#l02538">ttmath::Big&lt; exp, man &gt;::FromUInt()</a>.</p>

</div>
</div>
<a id="a6e6d6c539858b95828c386306c638f47"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6e6d6c539858b95828c386306c638f47">&#9670;&nbsp;</a></span>Big() <span class="overload">[9/15]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;uint exp, uint man&gt; </div>
<div class="memtemplate">
template&lt;uint another_exp, uint another_man&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classttmath_1_1_big.html">ttmath::Big</a>&lt; exp, man &gt;::<a class="el" href="classttmath_1_1_big.html">Big</a> </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classttmath_1_1_big.html">Big</a>&lt; another_exp, another_man &gt; &amp;&#160;</td>
          <td class="paramname"><em>value</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>a constructor for converting from 'Big&lt;another_exp, another_man&gt;' to this class </p>

<p class="definition">Definition at line <a class="el" href="ttmathbig_8h_source.html#l03642">3642</a> of file <a class="el" href="ttmathbig_8h_source.html">ttmathbig.h</a>.</p>
<div class="fragment"><div class="line"><a name="l03643"></a><span class="lineno"> 3643</span>&#160;    {</div><div class="line"><a name="l03644"></a><span class="lineno"> 3644</span>&#160;        <a class="code" href="classttmath_1_1_big.html#a961c89a45552dfac6d4a47e6e6d21106">FromBig</a>(value);</div><div class="line"><a name="l03645"></a><span class="lineno"> 3645</span>&#160;    }</div><div class="ttc" id="classttmath_1_1_big_html_a961c89a45552dfac6d4a47e6e6d21106"><div class="ttname"><a href="classttmath_1_1_big.html#a961c89a45552dfac6d4a47e6e6d21106">ttmath::Big::FromBig</a></div><div class="ttdeci">uint FromBig(const Big&lt; another_exp, another_man &gt; &amp;another)</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l02240">ttmathbig.h:2240</a></div></div>
</div><!-- fragment -->
<p class="reference">References <a class="el" href="ttmathbig_8h_source.html#l02240">ttmath::Big&lt; exp, man &gt;::FromBig()</a>.</p>

</div>
</div>
<a id="af44096d7caaaa52ef6f5de03818e7eab"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af44096d7caaaa52ef6f5de03818e7eab">&#9670;&nbsp;</a></span>Big() <span class="overload">[10/15]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;uint exp, uint man&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classttmath_1_1_big.html">ttmath::Big</a>&lt; exp, man &gt;::<a class="el" href="classttmath_1_1_big.html">Big</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>a default constructor</p>
<p>by default we don't set any of the members to zero only NaN flag is set</p>
<p>if you want the mantissa and exponent to be set to zero define TTMATH_BIG_DEFAULT_CLEAR macro (useful for debug purposes) </p>

<p class="definition">Definition at line <a class="el" href="ttmathbig_8h_source.html#l03658">3658</a> of file <a class="el" href="ttmathbig_8h_source.html">ttmathbig.h</a>.</p>
<div class="fragment"><div class="line"><a name="l03659"></a><span class="lineno"> 3659</span>&#160;    {</div><div class="line"><a name="l03660"></a><span class="lineno"> 3660</span>&#160;<span class="preprocessor">        #ifdef TTMATH_BIG_DEFAULT_CLEAR</span></div><div class="line"><a name="l03661"></a><span class="lineno"> 3661</span>&#160;</div><div class="line"><a name="l03662"></a><span class="lineno"> 3662</span>&#160;            <a class="code" href="classttmath_1_1_big.html#a71805011593c0be2e134dae8d71983ea">SetZeroNan</a>();</div><div class="line"><a name="l03663"></a><span class="lineno"> 3663</span>&#160;</div><div class="line"><a name="l03664"></a><span class="lineno"> 3664</span>&#160;<span class="preprocessor">        #else</span></div><div class="line"><a name="l03665"></a><span class="lineno"> 3665</span>&#160;</div><div class="line"><a name="l03666"></a><span class="lineno"> 3666</span>&#160;            info = <a class="code" href="ttmathbig_8h.html#a6219093f504910a0e8415844157c70fc">TTMATH_BIG_NAN</a>;</div><div class="line"><a name="l03667"></a><span class="lineno"> 3667</span>&#160;            <span class="comment">// we&#39;re directly setting &#39;info&#39; (instead of calling SetNan())</span></div><div class="line"><a name="l03668"></a><span class="lineno"> 3668</span>&#160;            <span class="comment">// in order to get rid of a warning saying that &#39;info&#39; is uninitialized</span></div><div class="line"><a name="l03669"></a><span class="lineno"> 3669</span>&#160;</div><div class="line"><a name="l03670"></a><span class="lineno"> 3670</span>&#160;<span class="preprocessor">        #endif</span></div><div class="line"><a name="l03671"></a><span class="lineno"> 3671</span>&#160;    }</div><div class="ttc" id="classttmath_1_1_big_html_a71805011593c0be2e134dae8d71983ea"><div class="ttname"><a href="classttmath_1_1_big.html#a71805011593c0be2e134dae8d71983ea">ttmath::Big::SetZeroNan</a></div><div class="ttdeci">void SetZeroNan()</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l00306">ttmathbig.h:306</a></div></div>
<div class="ttc" id="ttmathbig_8h_html_a6219093f504910a0e8415844157c70fc"><div class="ttname"><a href="ttmathbig_8h.html#a6219093f504910a0e8415844157c70fc">TTMATH_BIG_NAN</a></div><div class="ttdeci">#define TTMATH_BIG_NAN</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l00104">ttmathbig.h:104</a></div></div>
</div><!-- fragment -->
<p class="reference">References <a class="el" href="ttmathbig_8h_source.html#l00306">ttmath::Big&lt; exp, man &gt;::SetZeroNan()</a>, and <a class="el" href="ttmathbig_8h_source.html#l00104">TTMATH_BIG_NAN</a>.</p>

</div>
</div>
<a id="a24763be7072f23d6d057de265516f551"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a24763be7072f23d6d057de265516f551">&#9670;&nbsp;</a></span>~Big()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;uint exp, uint man&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classttmath_1_1_big.html">ttmath::Big</a>&lt; exp, man &gt;::~<a class="el" href="classttmath_1_1_big.html">Big</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>a destructor </p>

<p class="definition">Definition at line <a class="el" href="ttmathbig_8h_source.html#l03677">3677</a> of file <a class="el" href="ttmathbig_8h_source.html">ttmathbig.h</a>.</p>
<div class="fragment"><div class="line"><a name="l03678"></a><span class="lineno"> 3678</span>&#160;    {</div><div class="line"><a name="l03679"></a><span class="lineno"> 3679</span>&#160;    }</div></div><!-- fragment -->
</div>
</div>
<a id="afb973e2f20e7ce89b161df73c6bea8aa"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afb973e2f20e7ce89b161df73c6bea8aa">&#9670;&nbsp;</a></span>Big() <span class="overload">[11/15]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;uint exp, uint man&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classttmath_1_1_big.html">ttmath::Big</a>&lt; exp, man &gt;::<a class="el" href="classttmath_1_1_big.html">Big</a> </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classttmath_1_1_big.html">Big</a>&lt; exp, man &gt; &amp;&#160;</td>
          <td class="paramname"><em>value</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>a constructor for copying from another object of this class </p>

<p class="definition">Definition at line <a class="el" href="ttmathbig_8h_source.html#l03699">3699</a> of file <a class="el" href="ttmathbig_8h_source.html">ttmathbig.h</a>.</p>
<div class="fragment"><div class="line"><a name="l03700"></a><span class="lineno"> 3700</span>&#160;    {</div><div class="line"><a name="l03701"></a><span class="lineno"> 3701</span>&#160;        <a class="code" href="classttmath_1_1_big.html#ae2818bdfc2f236628a17c9585c594ca4">operator=</a>(value);</div><div class="line"><a name="l03702"></a><span class="lineno"> 3702</span>&#160;    }</div><div class="ttc" id="classttmath_1_1_big_html_ae2818bdfc2f236628a17c9585c594ca4"><div class="ttname"><a href="classttmath_1_1_big.html#ae2818bdfc2f236628a17c9585c594ca4">ttmath::Big::operator=</a></div><div class="ttdeci">Big&lt; exp, man &gt; &amp; operator=(sint value)</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l03119">ttmathbig.h:3119</a></div></div>
</div><!-- fragment -->
<p class="reference">References <a class="el" href="ttmathbig_8h_source.html#l03119">ttmath::Big&lt; exp, man &gt;::operator=()</a>.</p>

</div>
</div>
<a id="a77ac7df77125a3d5a66a50ce3d44eb83"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a77ac7df77125a3d5a66a50ce3d44eb83">&#9670;&nbsp;</a></span>Big() <span class="overload">[12/15]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;uint exp, uint man&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classttmath_1_1_big.html">ttmath::Big</a>&lt; exp, man &gt;::<a class="el" href="classttmath_1_1_big.html">Big</a> </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>string</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>a constructor for converting a string into this class </p>

<p class="definition">Definition at line <a class="el" href="ttmathbig_8h_source.html#l05321">5321</a> of file <a class="el" href="ttmathbig_8h_source.html">ttmathbig.h</a>.</p>
<div class="fragment"><div class="line"><a name="l05322"></a><span class="lineno"> 5322</span>&#160;    {</div><div class="line"><a name="l05323"></a><span class="lineno"> 5323</span>&#160;        <a class="code" href="classttmath_1_1_big.html#acaf20ea76a22aa1717976fc5c415994b">FromString</a>( <span class="keywordtype">string</span> );</div><div class="line"><a name="l05324"></a><span class="lineno"> 5324</span>&#160;    }</div><div class="ttc" id="classttmath_1_1_big_html_acaf20ea76a22aa1717976fc5c415994b"><div class="ttname"><a href="classttmath_1_1_big.html#acaf20ea76a22aa1717976fc5c415994b">ttmath::Big::FromString</a></div><div class="ttdeci">uint FromString(const char *source, uint base=10, const char **after_source=0, bool *value_read=0)</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l04949">ttmathbig.h:4949</a></div></div>
</div><!-- fragment -->
<p class="reference">References <a class="el" href="ttmathbig_8h_source.html#l04949">ttmath::Big&lt; exp, man &gt;::FromString()</a>.</p>

</div>
</div>
<a id="a84070489fc71cd69d0e041f2b20d0616"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a84070489fc71cd69d0e041f2b20d0616">&#9670;&nbsp;</a></span>Big() <span class="overload">[13/15]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;uint exp, uint man&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classttmath_1_1_big.html">ttmath::Big</a>&lt; exp, man &gt;::<a class="el" href="classttmath_1_1_big.html">Big</a> </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>string</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>a constructor for converting a string into this class </p>

<p class="definition">Definition at line <a class="el" href="ttmathbig_8h_source.html#l05330">5330</a> of file <a class="el" href="ttmathbig_8h_source.html">ttmathbig.h</a>.</p>
<div class="fragment"><div class="line"><a name="l05331"></a><span class="lineno"> 5331</span>&#160;    {</div><div class="line"><a name="l05332"></a><span class="lineno"> 5332</span>&#160;        <a class="code" href="classttmath_1_1_big.html#acaf20ea76a22aa1717976fc5c415994b">FromString</a>( <span class="keywordtype">string</span>.c_str() );</div><div class="line"><a name="l05333"></a><span class="lineno"> 5333</span>&#160;    }</div><div class="ttc" id="classttmath_1_1_big_html_acaf20ea76a22aa1717976fc5c415994b"><div class="ttname"><a href="classttmath_1_1_big.html#acaf20ea76a22aa1717976fc5c415994b">ttmath::Big::FromString</a></div><div class="ttdeci">uint FromString(const char *source, uint base=10, const char **after_source=0, bool *value_read=0)</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l04949">ttmathbig.h:4949</a></div></div>
</div><!-- fragment -->
<p class="reference">References <a class="el" href="ttmathbig_8h_source.html#l04949">ttmath::Big&lt; exp, man &gt;::FromString()</a>.</p>

</div>
</div>
<a id="a58f72e5345f932653619cc463f814bbb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a58f72e5345f932653619cc463f814bbb">&#9670;&nbsp;</a></span>Big() <span class="overload">[14/15]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;uint exp, uint man&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classttmath_1_1_big.html">ttmath::Big</a>&lt; exp, man &gt;::<a class="el" href="classttmath_1_1_big.html">Big</a> </td>
          <td>(</td>
          <td class="paramtype">const wchar_t *&#160;</td>
          <td class="paramname"><em>string</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>a constructor for converting a string into this class </p>

<p class="definition">Definition at line <a class="el" href="ttmathbig_8h_source.html#l05364">5364</a> of file <a class="el" href="ttmathbig_8h_source.html">ttmathbig.h</a>.</p>
<div class="fragment"><div class="line"><a name="l05365"></a><span class="lineno"> 5365</span>&#160;    {</div><div class="line"><a name="l05366"></a><span class="lineno"> 5366</span>&#160;        <a class="code" href="classttmath_1_1_big.html#acaf20ea76a22aa1717976fc5c415994b">FromString</a>( <span class="keywordtype">string</span> );</div><div class="line"><a name="l05367"></a><span class="lineno"> 5367</span>&#160;    }</div><div class="ttc" id="classttmath_1_1_big_html_acaf20ea76a22aa1717976fc5c415994b"><div class="ttname"><a href="classttmath_1_1_big.html#acaf20ea76a22aa1717976fc5c415994b">ttmath::Big::FromString</a></div><div class="ttdeci">uint FromString(const char *source, uint base=10, const char **after_source=0, bool *value_read=0)</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l04949">ttmathbig.h:4949</a></div></div>
</div><!-- fragment -->
<p class="reference">References <a class="el" href="ttmathbig_8h_source.html#l04949">ttmath::Big&lt; exp, man &gt;::FromString()</a>.</p>

</div>
</div>
<a id="a9b1c08752b17d93cf5a11493177869bf"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9b1c08752b17d93cf5a11493177869bf">&#9670;&nbsp;</a></span>Big() <span class="overload">[15/15]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;uint exp, uint man&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classttmath_1_1_big.html">ttmath::Big</a>&lt; exp, man &gt;::<a class="el" href="classttmath_1_1_big.html">Big</a> </td>
          <td>(</td>
          <td class="paramtype">const std::wstring &amp;&#160;</td>
          <td class="paramname"><em>string</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>a constructor for converting a string into this class </p>

<p class="definition">Definition at line <a class="el" href="ttmathbig_8h_source.html#l05373">5373</a> of file <a class="el" href="ttmathbig_8h_source.html">ttmathbig.h</a>.</p>
<div class="fragment"><div class="line"><a name="l05374"></a><span class="lineno"> 5374</span>&#160;    {</div><div class="line"><a name="l05375"></a><span class="lineno"> 5375</span>&#160;        <a class="code" href="classttmath_1_1_big.html#acaf20ea76a22aa1717976fc5c415994b">FromString</a>( <span class="keywordtype">string</span>.c_str() );</div><div class="line"><a name="l05376"></a><span class="lineno"> 5376</span>&#160;    }</div><div class="ttc" id="classttmath_1_1_big_html_acaf20ea76a22aa1717976fc5c415994b"><div class="ttname"><a href="classttmath_1_1_big.html#acaf20ea76a22aa1717976fc5c415994b">ttmath::Big::FromString</a></div><div class="ttdeci">uint FromString(const char *source, uint base=10, const char **after_source=0, bool *value_read=0)</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l04949">ttmathbig.h:4949</a></div></div>
</div><!-- fragment -->
<p class="reference">References <a class="el" href="ttmathbig_8h_source.html#l04949">ttmath::Big&lt; exp, man &gt;::FromString()</a>.</p>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a9e3548dd8473d8dc8bf2fa03b13059e2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9e3548dd8473d8dc8bf2fa03b13059e2">&#9670;&nbsp;</a></span>Abs()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;uint exp, uint man&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classttmath_1_1_big.html">ttmath::Big</a>&lt; exp, man &gt;::Abs </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>this method clears the sign (there'll be an absolute value)</p>
<p>samples</p><ul>
<li>-1 -&gt; 1</li>
<li>2 -&gt; 2 </li>
</ul>

<p class="definition">Definition at line <a class="el" href="ttmathbig_8h_source.html#l00682">682</a> of file <a class="el" href="ttmathbig_8h_source.html">ttmathbig.h</a>.</p>
<div class="fragment"><div class="line"><a name="l00683"></a><span class="lineno">  683</span>&#160;    {</div><div class="line"><a name="l00684"></a><span class="lineno">  684</span>&#160;        <a class="code" href="classttmath_1_1_big.html#a9b37f06bfa5793ecbfe889e7ad7931b2">ClearInfoBit</a>(<a class="code" href="ttmathbig_8h.html#a9222f49a8d16599b8b7c77c149796649">TTMATH_BIG_SIGN</a>);</div><div class="line"><a name="l00685"></a><span class="lineno">  685</span>&#160;    }</div><div class="ttc" id="classttmath_1_1_big_html_a9b37f06bfa5793ecbfe889e7ad7931b2"><div class="ttname"><a href="classttmath_1_1_big.html#a9b37f06bfa5793ecbfe889e7ad7931b2">ttmath::Big::ClearInfoBit</a></div><div class="ttdeci">void ClearInfoBit(unsigned char bit)</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l00224">ttmathbig.h:224</a></div></div>
<div class="ttc" id="ttmathbig_8h_html_a9222f49a8d16599b8b7c77c149796649"><div class="ttname"><a href="ttmathbig_8h.html#a9222f49a8d16599b8b7c77c149796649">TTMATH_BIG_SIGN</a></div><div class="ttdeci">#define TTMATH_BIG_SIGN</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l00097">ttmathbig.h:97</a></div></div>
</div><!-- fragment -->
<p class="reference">References <a class="el" href="ttmathbig_8h_source.html#l00224">ttmath::Big&lt; exp, man &gt;::ClearInfoBit()</a>, and <a class="el" href="ttmathbig_8h_source.html#l00097">TTMATH_BIG_SIGN</a>.</p>

<p class="reference">Referenced by <a class="el" href="ttmathbig_8h_source.html#l01966">ttmath::Big&lt; exp, man &gt;::Exp()</a>, <a class="el" href="ttmathbig_8h_source.html#l01233">ttmath::Big&lt; exp, man &gt;::MulInt()</a>, and <a class="el" href="ttmathbig_8h_source.html#l01675">ttmath::Big&lt; exp, man &gt;::PowUInt()</a>.</p>

</div>
</div>
<a id="af8cc709585199e6f5b48e9b4e058b043"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af8cc709585199e6f5b48e9b4e058b043">&#9670;&nbsp;</a></span>Add()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;uint exp, uint man&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a> <a class="el" href="classttmath_1_1_big.html">ttmath::Big</a>&lt; exp, man &gt;::Add </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classttmath_1_1_big.html">Big</a>&lt; exp, man &gt;&#160;</td>
          <td class="paramname"><em>ss2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>round</em> = <code>true</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>adding</em> = <code>true</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Addition this = this + ss2</p>
<p>it returns carry if the sum is too big </p>

<p class="definition">Definition at line <a class="el" href="ttmathbig_8h_source.html#l00930">930</a> of file <a class="el" href="ttmathbig_8h_source.html">ttmathbig.h</a>.</p>
<div class="fragment"><div class="line"><a name="l00931"></a><span class="lineno">  931</span>&#160;    {</div><div class="line"><a name="l00932"></a><span class="lineno">  932</span>&#160;    <span class="keywordtype">bool</span> last_bit_set, rest_zero, do_adding, do_rounding, rounding_up;</div><div class="line"><a name="l00933"></a><span class="lineno">  933</span>&#160;    <a class="code" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a> c = 0;</div><div class="line"><a name="l00934"></a><span class="lineno">  934</span>&#160;</div><div class="line"><a name="l00935"></a><span class="lineno">  935</span>&#160;        <span class="keywordflow">if</span>( <a class="code" href="classttmath_1_1_big.html#a7575e10d9fff2f301a66bb05ab472111">IsNan</a>() || ss2.IsNan() )</div><div class="line"><a name="l00936"></a><span class="lineno">  936</span>&#160;            <span class="keywordflow">return</span> <a class="code" href="classttmath_1_1_big.html#a0681595612114e8ab1dc9c8f3e8590e7">CheckCarry</a>(1);</div><div class="line"><a name="l00937"></a><span class="lineno">  937</span>&#160;</div><div class="line"><a name="l00938"></a><span class="lineno">  938</span>&#160;        <span class="keywordflow">if</span>( !adding )</div><div class="line"><a name="l00939"></a><span class="lineno">  939</span>&#160;            ss2.ChangeSign(); <span class="comment">// subtracting</span></div><div class="line"><a name="l00940"></a><span class="lineno">  940</span>&#160;</div><div class="line"><a name="l00941"></a><span class="lineno">  941</span>&#160;        <span class="comment">// (1) abs(this) will be &gt;= abs(ss2)</span></div><div class="line"><a name="l00942"></a><span class="lineno">  942</span>&#160;        <span class="keywordflow">if</span>( <a class="code" href="classttmath_1_1_big.html#a591311e9b21e4c6dc5ae8e6140e1a7f6">SmallerWithoutSignThan</a>(ss2) )</div><div class="line"><a name="l00943"></a><span class="lineno">  943</span>&#160;            <a class="code" href="classttmath_1_1_big.html#a86225c6b7812f9d9ed2a4009b3278222">Swap</a>(ss2);</div><div class="line"><a name="l00944"></a><span class="lineno">  944</span>&#160;</div><div class="line"><a name="l00945"></a><span class="lineno">  945</span>&#160;        <span class="keywordflow">if</span>( ss2.IsZero() )</div><div class="line"><a name="l00946"></a><span class="lineno">  946</span>&#160;            <span class="keywordflow">return</span> 0;</div><div class="line"><a name="l00947"></a><span class="lineno">  947</span>&#160;</div><div class="line"><a name="l00948"></a><span class="lineno">  948</span>&#160;        Int&lt;exp&gt; exp_offset( exponent );</div><div class="line"><a name="l00949"></a><span class="lineno">  949</span>&#160;        exp_offset.Sub( ss2.exponent );</div><div class="line"><a name="l00950"></a><span class="lineno">  950</span>&#160;</div><div class="line"><a name="l00951"></a><span class="lineno">  951</span>&#160;        <span class="keywordflow">if</span>( !exp_offset.Abs() )</div><div class="line"><a name="l00952"></a><span class="lineno">  952</span>&#160;        {</div><div class="line"><a name="l00953"></a><span class="lineno">  953</span>&#160;            <span class="comment">// if there is a carry in Abs it means the value in exp_offset has only the lowest bit set</span></div><div class="line"><a name="l00954"></a><span class="lineno">  954</span>&#160;            <span class="comment">// so the value is the smallest possible integer</span></div><div class="line"><a name="l00955"></a><span class="lineno">  955</span>&#160;            <span class="comment">// and its Abs would be greater than mantissa size in bits</span></div><div class="line"><a name="l00956"></a><span class="lineno">  956</span>&#160;            <span class="comment">// so the method AddCheckExponents would do nothing</span></div><div class="line"><a name="l00957"></a><span class="lineno">  957</span>&#160;</div><div class="line"><a name="l00958"></a><span class="lineno">  958</span>&#160;            last_bit_set = rest_zero = do_adding = do_rounding = <span class="keyword">false</span>;</div><div class="line"><a name="l00959"></a><span class="lineno">  959</span>&#160;            rounding_up = (<a class="code" href="classttmath_1_1_big.html#ac8f89807eb1878d93d76fe609f4a6b42">IsSign</a>() == ss2.IsSign());</div><div class="line"><a name="l00960"></a><span class="lineno">  960</span>&#160;</div><div class="line"><a name="l00961"></a><span class="lineno">  961</span>&#160;            AddCheckExponents(ss2, exp_offset, last_bit_set, rest_zero, do_adding, do_rounding);</div><div class="line"><a name="l00962"></a><span class="lineno">  962</span>&#160;</div><div class="line"><a name="l00963"></a><span class="lineno">  963</span>&#160;            <span class="keywordflow">if</span>( do_adding )</div><div class="line"><a name="l00964"></a><span class="lineno">  964</span>&#160;                c += AddMantissas(ss2, last_bit_set, rest_zero);</div><div class="line"><a name="l00965"></a><span class="lineno">  965</span>&#160;</div><div class="line"><a name="l00966"></a><span class="lineno">  966</span>&#160;            <span class="keywordflow">if</span>( !round || !last_bit_set )</div><div class="line"><a name="l00967"></a><span class="lineno">  967</span>&#160;                do_rounding = <span class="keyword">false</span>;</div><div class="line"><a name="l00968"></a><span class="lineno">  968</span>&#160;</div><div class="line"><a name="l00969"></a><span class="lineno">  969</span>&#160;            <span class="keywordflow">if</span>( do_rounding )</div><div class="line"><a name="l00970"></a><span class="lineno">  970</span>&#160;                c += RoundHalfToEven(rest_zero, rounding_up);</div><div class="line"><a name="l00971"></a><span class="lineno">  971</span>&#160;</div><div class="line"><a name="l00972"></a><span class="lineno">  972</span>&#160;            <span class="keywordflow">if</span>( do_adding || do_rounding )</div><div class="line"><a name="l00973"></a><span class="lineno">  973</span>&#160;                c += <a class="code" href="classttmath_1_1_big.html#aedc4abe8e1d984289b41830e9a1d67fb">Standardizing</a>();</div><div class="line"><a name="l00974"></a><span class="lineno">  974</span>&#160;        }</div><div class="line"><a name="l00975"></a><span class="lineno">  975</span>&#160;</div><div class="line"><a name="l00976"></a><span class="lineno">  976</span>&#160;</div><div class="line"><a name="l00977"></a><span class="lineno">  977</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="classttmath_1_1_big.html#a0681595612114e8ab1dc9c8f3e8590e7">CheckCarry</a>(c);</div><div class="line"><a name="l00978"></a><span class="lineno">  978</span>&#160;    }</div><div class="ttc" id="classttmath_1_1_big_html_ac8f89807eb1878d93d76fe609f4a6b42"><div class="ttname"><a href="classttmath_1_1_big.html#ac8f89807eb1878d93d76fe609f4a6b42">ttmath::Big::IsSign</a></div><div class="ttdeci">bool IsSign() const</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l00658">ttmathbig.h:658</a></div></div>
<div class="ttc" id="classttmath_1_1_big_html_a0681595612114e8ab1dc9c8f3e8590e7"><div class="ttname"><a href="classttmath_1_1_big.html#a0681595612114e8ab1dc9c8f3e8590e7">ttmath::Big::CheckCarry</a></div><div class="ttdeci">uint CheckCarry(uint c)</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l00121">ttmathbig.h:121</a></div></div>
<div class="ttc" id="classttmath_1_1_big_html_a7575e10d9fff2f301a66bb05ab472111"><div class="ttname"><a href="classttmath_1_1_big.html#a7575e10d9fff2f301a66bb05ab472111">ttmath::Big::IsNan</a></div><div class="ttdeci">bool IsNan() const</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l00667">ttmathbig.h:667</a></div></div>
<div class="ttc" id="classttmath_1_1_big_html_a591311e9b21e4c6dc5ae8e6140e1a7f6"><div class="ttname"><a href="classttmath_1_1_big.html#a591311e9b21e4c6dc5ae8e6140e1a7f6">ttmath::Big::SmallerWithoutSignThan</a></div><div class="ttdeci">bool SmallerWithoutSignThan(const Big&lt; exp, man &gt; &amp;ss2) const</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l05419">ttmathbig.h:5419</a></div></div>
<div class="ttc" id="classttmath_1_1_big_html_aedc4abe8e1d984289b41830e9a1d67fb"><div class="ttname"><a href="classttmath_1_1_big.html#aedc4abe8e1d984289b41830e9a1d67fb">ttmath::Big::Standardizing</a></div><div class="ttdeci">uint Standardizing()</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l00173">ttmathbig.h:173</a></div></div>
<div class="ttc" id="namespacettmath_html_a5c1fccc9761aaa3d2b6dd32c224f5dac"><div class="ttname"><a href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">ttmath::uint</a></div><div class="ttdeci">uint64_t uint</div><div class="ttdef"><b>Definition:</b> <a href="ttmathtypes_8h_source.html#l00238">ttmathtypes.h:238</a></div></div>
<div class="ttc" id="classttmath_1_1_big_html_a86225c6b7812f9d9ed2a4009b3278222"><div class="ttname"><a href="classttmath_1_1_big.html#a86225c6b7812f9d9ed2a4009b3278222">ttmath::Big::Swap</a></div><div class="ttdeci">void Swap(Big&lt; exp, man &gt; &amp;ss2)</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l00316">ttmathbig.h:316</a></div></div>
</div><!-- fragment -->
<p class="reference">References <a class="el" href="ttmathint_8h_source.html#l00168">ttmath::Int&lt; value_size &gt;::Abs()</a>, <a class="el" href="ttmathbig_8h_source.html#l00740">ttmath::Big&lt; exp, man &gt;::ChangeSign()</a>, <a class="el" href="ttmathbig_8h_source.html#l00121">ttmath::Big&lt; exp, man &gt;::CheckCarry()</a>, <a class="el" href="ttmathbig_8h_source.html#l00667">ttmath::Big&lt; exp, man &gt;::IsNan()</a>, <a class="el" href="ttmathbig_8h_source.html#l00658">ttmath::Big&lt; exp, man &gt;::IsSign()</a>, <a class="el" href="ttmathbig_8h_source.html#l00648">ttmath::Big&lt; exp, man &gt;::IsZero()</a>, <a class="el" href="ttmathbig_8h_source.html#l05419">ttmath::Big&lt; exp, man &gt;::SmallerWithoutSignThan()</a>, <a class="el" href="ttmathbig_8h_source.html#l00173">ttmath::Big&lt; exp, man &gt;::Standardizing()</a>, <a class="el" href="ttmathint_8h_source.html#l00299">ttmath::Int&lt; value_size &gt;::Sub()</a>, and <a class="el" href="ttmathbig_8h_source.html#l00316">ttmath::Big&lt; exp, man &gt;::Swap()</a>.</p>

<p class="reference">Referenced by <a class="el" href="ttmathbig_8h_source.html#l02144">ttmath::Big&lt; exp, man &gt;::Ln()</a>, <a class="el" href="ttmathbig_8h_source.html#l05929">ttmath::Big&lt; exp, man &gt;::Round()</a>, and <a class="el" href="ttmathbig_8h_source.html#l00986">ttmath::Big&lt; exp, man &gt;::Sub()</a>.</p>

</div>
</div>
<a id="afd2e1ded5ff360db5f2b6e1b98fb360f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afd2e1ded5ff360db5f2b6e1b98fb360f">&#9670;&nbsp;</a></span>BitAnd()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;uint exp, uint man&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a> <a class="el" href="classttmath_1_1_big.html">ttmath::Big</a>&lt; exp, man &gt;::BitAnd </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classttmath_1_1_big.html">Big</a>&lt; exp, man &gt;&#160;</td>
          <td class="paramname"><em>ss2</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>bitwise AND</p>
<p>this and ss2 must be &gt;= 0</p>
<p>return values:</p><ul>
<li>0 - ok</li>
<li>1 - carry</li>
<li>2 - this or ss2 was negative </li>
</ul>

<p class="definition">Definition at line <a class="el" href="ttmathbig_8h_source.html#l01002">1002</a> of file <a class="el" href="ttmathbig_8h_source.html">ttmathbig.h</a>.</p>
<div class="fragment"><div class="line"><a name="l01003"></a><span class="lineno"> 1003</span>&#160;    {</div><div class="line"><a name="l01004"></a><span class="lineno"> 1004</span>&#160;        <a class="code" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a> c = 0;</div><div class="line"><a name="l01005"></a><span class="lineno"> 1005</span>&#160;</div><div class="line"><a name="l01006"></a><span class="lineno"> 1006</span>&#160;        <span class="keywordflow">if</span>( <a class="code" href="classttmath_1_1_big.html#a7575e10d9fff2f301a66bb05ab472111">IsNan</a>() || ss2.IsNan() )</div><div class="line"><a name="l01007"></a><span class="lineno"> 1007</span>&#160;            <span class="keywordflow">return</span> <a class="code" href="classttmath_1_1_big.html#a0681595612114e8ab1dc9c8f3e8590e7">CheckCarry</a>(1);</div><div class="line"><a name="l01008"></a><span class="lineno"> 1008</span>&#160;</div><div class="line"><a name="l01009"></a><span class="lineno"> 1009</span>&#160;        <span class="keywordflow">if</span>( <a class="code" href="classttmath_1_1_big.html#ac8f89807eb1878d93d76fe609f4a6b42">IsSign</a>() || ss2.IsSign() )</div><div class="line"><a name="l01010"></a><span class="lineno"> 1010</span>&#160;        {</div><div class="line"><a name="l01011"></a><span class="lineno"> 1011</span>&#160;            <a class="code" href="classttmath_1_1_big.html#a568b91071e386e75dffb0aebdf1c47ec">SetNan</a>();</div><div class="line"><a name="l01012"></a><span class="lineno"> 1012</span>&#160;            <span class="keywordflow">return</span> 2;</div><div class="line"><a name="l01013"></a><span class="lineno"> 1013</span>&#160;        }</div><div class="line"><a name="l01014"></a><span class="lineno"> 1014</span>&#160;</div><div class="line"><a name="l01015"></a><span class="lineno"> 1015</span>&#160;        <span class="keywordflow">if</span>( <a class="code" href="classttmath_1_1_big.html#a00cdfa94cc491487709a3f1356fd0a14">IsZero</a>() )</div><div class="line"><a name="l01016"></a><span class="lineno"> 1016</span>&#160;            <span class="keywordflow">return</span> 0;</div><div class="line"><a name="l01017"></a><span class="lineno"> 1017</span>&#160;</div><div class="line"><a name="l01018"></a><span class="lineno"> 1018</span>&#160;        <span class="keywordflow">if</span>( ss2.IsZero() )</div><div class="line"><a name="l01019"></a><span class="lineno"> 1019</span>&#160;        {</div><div class="line"><a name="l01020"></a><span class="lineno"> 1020</span>&#160;            <a class="code" href="classttmath_1_1_big.html#a1b5980e7d66c1a6bcfe55d85eccb1821">SetZero</a>();</div><div class="line"><a name="l01021"></a><span class="lineno"> 1021</span>&#160;            <span class="keywordflow">return</span> 0;</div><div class="line"><a name="l01022"></a><span class="lineno"> 1022</span>&#160;        }</div><div class="line"><a name="l01023"></a><span class="lineno"> 1023</span>&#160;</div><div class="line"><a name="l01024"></a><span class="lineno"> 1024</span>&#160;        <span class="comment">// abs(this) will be &gt;= abs(ss2)</span></div><div class="line"><a name="l01025"></a><span class="lineno"> 1025</span>&#160;        <span class="keywordflow">if</span>( <a class="code" href="classttmath_1_1_big.html#a591311e9b21e4c6dc5ae8e6140e1a7f6">SmallerWithoutSignThan</a>(ss2) )</div><div class="line"><a name="l01026"></a><span class="lineno"> 1026</span>&#160;            <a class="code" href="classttmath_1_1_big.html#a86225c6b7812f9d9ed2a4009b3278222">Swap</a>(ss2);</div><div class="line"><a name="l01027"></a><span class="lineno"> 1027</span>&#160;</div><div class="line"><a name="l01028"></a><span class="lineno"> 1028</span>&#160;        Int&lt;exp&gt; exp_offset( exponent );</div><div class="line"><a name="l01029"></a><span class="lineno"> 1029</span>&#160;        Int&lt;exp&gt; mantissa_size_in_bits( man * <a class="code" href="ttmathtypes_8h.html#aef936ab7a0d7f0c34a9a794b3072cf6a">TTMATH_BITS_PER_UINT</a> );</div><div class="line"><a name="l01030"></a><span class="lineno"> 1030</span>&#160;        exp_offset.Sub( ss2.exponent );</div><div class="line"><a name="l01031"></a><span class="lineno"> 1031</span>&#160;</div><div class="line"><a name="l01032"></a><span class="lineno"> 1032</span>&#160;        <span class="keywordflow">if</span>( exp_offset.Abs() || exp_offset &gt;= mantissa_size_in_bits )</div><div class="line"><a name="l01033"></a><span class="lineno"> 1033</span>&#160;        {</div><div class="line"><a name="l01034"></a><span class="lineno"> 1034</span>&#160;            <span class="comment">// if there is a carry in Abs it means the value in exp_offset has only the lowest bit set</span></div><div class="line"><a name="l01035"></a><span class="lineno"> 1035</span>&#160;            <span class="comment">// so the value is the smallest possible integer</span></div><div class="line"><a name="l01036"></a><span class="lineno"> 1036</span>&#160;            <span class="comment">// and its Abs would be greater than mantissa size in bits</span></div><div class="line"><a name="l01037"></a><span class="lineno"> 1037</span>&#160;</div><div class="line"><a name="l01038"></a><span class="lineno"> 1038</span>&#160;            <span class="comment">// the second value is too small</span></div><div class="line"><a name="l01039"></a><span class="lineno"> 1039</span>&#160;            <a class="code" href="classttmath_1_1_big.html#a1b5980e7d66c1a6bcfe55d85eccb1821">SetZero</a>();</div><div class="line"><a name="l01040"></a><span class="lineno"> 1040</span>&#160;            <span class="keywordflow">return</span> 0;</div><div class="line"><a name="l01041"></a><span class="lineno"> 1041</span>&#160;        }</div><div class="line"><a name="l01042"></a><span class="lineno"> 1042</span>&#160;</div><div class="line"><a name="l01043"></a><span class="lineno"> 1043</span>&#160;        <span class="comment">// exp_offset &lt; mantissa_size_in_bits, moving &#39;exp_offset&#39; times</span></div><div class="line"><a name="l01044"></a><span class="lineno"> 1044</span>&#160;        ss2.mantissa.Rcr( exp_offset.ToInt(), 0 );</div><div class="line"><a name="l01045"></a><span class="lineno"> 1045</span>&#160;        mantissa.<a class="code" href="classttmath_1_1_u_int.html#a3f305dc39575008dc2ad1f094cdccacc">BitAnd</a>(ss2.mantissa);</div><div class="line"><a name="l01046"></a><span class="lineno"> 1046</span>&#160;</div><div class="line"><a name="l01047"></a><span class="lineno"> 1047</span>&#160;        c += <a class="code" href="classttmath_1_1_big.html#aedc4abe8e1d984289b41830e9a1d67fb">Standardizing</a>();</div><div class="line"><a name="l01048"></a><span class="lineno"> 1048</span>&#160;</div><div class="line"><a name="l01049"></a><span class="lineno"> 1049</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="classttmath_1_1_big.html#a0681595612114e8ab1dc9c8f3e8590e7">CheckCarry</a>(c);</div><div class="line"><a name="l01050"></a><span class="lineno"> 1050</span>&#160;    }</div><div class="ttc" id="classttmath_1_1_big_html_ac8f89807eb1878d93d76fe609f4a6b42"><div class="ttname"><a href="classttmath_1_1_big.html#ac8f89807eb1878d93d76fe609f4a6b42">ttmath::Big::IsSign</a></div><div class="ttdeci">bool IsSign() const</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l00658">ttmathbig.h:658</a></div></div>
<div class="ttc" id="classttmath_1_1_big_html_a0681595612114e8ab1dc9c8f3e8590e7"><div class="ttname"><a href="classttmath_1_1_big.html#a0681595612114e8ab1dc9c8f3e8590e7">ttmath::Big::CheckCarry</a></div><div class="ttdeci">uint CheckCarry(uint c)</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l00121">ttmathbig.h:121</a></div></div>
<div class="ttc" id="classttmath_1_1_big_html_a568b91071e386e75dffb0aebdf1c47ec"><div class="ttname"><a href="classttmath_1_1_big.html#a568b91071e386e75dffb0aebdf1c47ec">ttmath::Big::SetNan</a></div><div class="ttdeci">void SetNan()</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l00296">ttmathbig.h:296</a></div></div>
<div class="ttc" id="classttmath_1_1_big_html_a00cdfa94cc491487709a3f1356fd0a14"><div class="ttname"><a href="classttmath_1_1_big.html#a00cdfa94cc491487709a3f1356fd0a14">ttmath::Big::IsZero</a></div><div class="ttdeci">bool IsZero() const</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l00648">ttmathbig.h:648</a></div></div>
<div class="ttc" id="classttmath_1_1_u_int_html_a3f305dc39575008dc2ad1f094cdccacc"><div class="ttname"><a href="classttmath_1_1_u_int.html#a3f305dc39575008dc2ad1f094cdccacc">ttmath::UInt::BitAnd</a></div><div class="ttdeci">void BitAnd(const UInt&lt; value_size &gt; &amp;ss2)</div><div class="ttdef"><b>Definition:</b> <a href="ttmathuint_8h_source.html#l00743">ttmathuint.h:743</a></div></div>
<div class="ttc" id="classttmath_1_1_big_html_a7575e10d9fff2f301a66bb05ab472111"><div class="ttname"><a href="classttmath_1_1_big.html#a7575e10d9fff2f301a66bb05ab472111">ttmath::Big::IsNan</a></div><div class="ttdeci">bool IsNan() const</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l00667">ttmathbig.h:667</a></div></div>
<div class="ttc" id="ttmathtypes_8h_html_aef936ab7a0d7f0c34a9a794b3072cf6a"><div class="ttname"><a href="ttmathtypes_8h.html#aef936ab7a0d7f0c34a9a794b3072cf6a">TTMATH_BITS_PER_UINT</a></div><div class="ttdeci">#define TTMATH_BITS_PER_UINT</div><div class="ttdef"><b>Definition:</b> <a href="ttmathtypes_8h_source.html#l00253">ttmathtypes.h:253</a></div></div>
<div class="ttc" id="classttmath_1_1_big_html_a591311e9b21e4c6dc5ae8e6140e1a7f6"><div class="ttname"><a href="classttmath_1_1_big.html#a591311e9b21e4c6dc5ae8e6140e1a7f6">ttmath::Big::SmallerWithoutSignThan</a></div><div class="ttdeci">bool SmallerWithoutSignThan(const Big&lt; exp, man &gt; &amp;ss2) const</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l05419">ttmathbig.h:5419</a></div></div>
<div class="ttc" id="classttmath_1_1_big_html_aedc4abe8e1d984289b41830e9a1d67fb"><div class="ttname"><a href="classttmath_1_1_big.html#aedc4abe8e1d984289b41830e9a1d67fb">ttmath::Big::Standardizing</a></div><div class="ttdeci">uint Standardizing()</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l00173">ttmathbig.h:173</a></div></div>
<div class="ttc" id="namespacettmath_html_a5c1fccc9761aaa3d2b6dd32c224f5dac"><div class="ttname"><a href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">ttmath::uint</a></div><div class="ttdeci">uint64_t uint</div><div class="ttdef"><b>Definition:</b> <a href="ttmathtypes_8h_source.html#l00238">ttmathtypes.h:238</a></div></div>
<div class="ttc" id="classttmath_1_1_big_html_a1b5980e7d66c1a6bcfe55d85eccb1821"><div class="ttname"><a href="classttmath_1_1_big.html#a1b5980e7d66c1a6bcfe55d85eccb1821">ttmath::Big::SetZero</a></div><div class="ttdeci">void SetZero()</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l00256">ttmathbig.h:256</a></div></div>
<div class="ttc" id="classttmath_1_1_big_html_a86225c6b7812f9d9ed2a4009b3278222"><div class="ttname"><a href="classttmath_1_1_big.html#a86225c6b7812f9d9ed2a4009b3278222">ttmath::Big::Swap</a></div><div class="ttdeci">void Swap(Big&lt; exp, man &gt; &amp;ss2)</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l00316">ttmathbig.h:316</a></div></div>
</div><!-- fragment -->
<p class="reference">References <a class="el" href="ttmathint_8h_source.html#l00168">ttmath::Int&lt; value_size &gt;::Abs()</a>, <a class="el" href="ttmathuint_8h_source.html#l00743">ttmath::UInt&lt; value_size &gt;::BitAnd()</a>, <a class="el" href="ttmathbig_8h_source.html#l00121">ttmath::Big&lt; exp, man &gt;::CheckCarry()</a>, <a class="el" href="ttmathbig_8h_source.html#l00667">ttmath::Big&lt; exp, man &gt;::IsNan()</a>, <a class="el" href="ttmathbig_8h_source.html#l00658">ttmath::Big&lt; exp, man &gt;::IsSign()</a>, <a class="el" href="ttmathbig_8h_source.html#l00648">ttmath::Big&lt; exp, man &gt;::IsZero()</a>, <a class="el" href="ttmathuint_8h_source.html#l00555">ttmath::UInt&lt; value_size &gt;::Rcr()</a>, <a class="el" href="ttmathbig_8h_source.html#l00296">ttmath::Big&lt; exp, man &gt;::SetNan()</a>, <a class="el" href="ttmathbig_8h_source.html#l00256">ttmath::Big&lt; exp, man &gt;::SetZero()</a>, <a class="el" href="ttmathbig_8h_source.html#l05419">ttmath::Big&lt; exp, man &gt;::SmallerWithoutSignThan()</a>, <a class="el" href="ttmathbig_8h_source.html#l00173">ttmath::Big&lt; exp, man &gt;::Standardizing()</a>, <a class="el" href="ttmathint_8h_source.html#l00299">ttmath::Int&lt; value_size &gt;::Sub()</a>, <a class="el" href="ttmathbig_8h_source.html#l00316">ttmath::Big&lt; exp, man &gt;::Swap()</a>, <a class="el" href="ttmathint_8h_source.html#l01132">ttmath::Int&lt; value_size &gt;::ToInt()</a>, and <a class="el" href="ttmathtypes_8h_source.html#l00253">TTMATH_BITS_PER_UINT</a>.</p>

<p class="reference">Referenced by <a class="el" href="ttmathbig_8h_source.html#l05739">ttmath::Big&lt; exp, man &gt;::operator &amp;()</a>.</p>

</div>
</div>
<a id="ae050abccee92058b55a9a890350eb23d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae050abccee92058b55a9a890350eb23d">&#9670;&nbsp;</a></span>BitOr()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;uint exp, uint man&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a> <a class="el" href="classttmath_1_1_big.html">ttmath::Big</a>&lt; exp, man &gt;::BitOr </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classttmath_1_1_big.html">Big</a>&lt; exp, man &gt;&#160;</td>
          <td class="paramname"><em>ss2</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>bitwise OR</p>
<p>this and ss2 must be &gt;= 0 return values:</p>
<ul>
<li>0 - ok</li>
<li>1 - carry</li>
<li>2 - this or ss2 was negative </li>
</ul>

<p class="definition">Definition at line <a class="el" href="ttmathbig_8h_source.html#l01063">1063</a> of file <a class="el" href="ttmathbig_8h_source.html">ttmathbig.h</a>.</p>
<div class="fragment"><div class="line"><a name="l01064"></a><span class="lineno"> 1064</span>&#160;    {</div><div class="line"><a name="l01065"></a><span class="lineno"> 1065</span>&#160;        <a class="code" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a> c = 0;</div><div class="line"><a name="l01066"></a><span class="lineno"> 1066</span>&#160;</div><div class="line"><a name="l01067"></a><span class="lineno"> 1067</span>&#160;        <span class="keywordflow">if</span>( <a class="code" href="classttmath_1_1_big.html#a7575e10d9fff2f301a66bb05ab472111">IsNan</a>() || ss2.IsNan() )</div><div class="line"><a name="l01068"></a><span class="lineno"> 1068</span>&#160;            <span class="keywordflow">return</span> <a class="code" href="classttmath_1_1_big.html#a0681595612114e8ab1dc9c8f3e8590e7">CheckCarry</a>(1);</div><div class="line"><a name="l01069"></a><span class="lineno"> 1069</span>&#160;</div><div class="line"><a name="l01070"></a><span class="lineno"> 1070</span>&#160;        <span class="keywordflow">if</span>( <a class="code" href="classttmath_1_1_big.html#ac8f89807eb1878d93d76fe609f4a6b42">IsSign</a>() || ss2.IsSign() )</div><div class="line"><a name="l01071"></a><span class="lineno"> 1071</span>&#160;        {</div><div class="line"><a name="l01072"></a><span class="lineno"> 1072</span>&#160;            <a class="code" href="classttmath_1_1_big.html#a568b91071e386e75dffb0aebdf1c47ec">SetNan</a>();</div><div class="line"><a name="l01073"></a><span class="lineno"> 1073</span>&#160;            <span class="keywordflow">return</span> 2;</div><div class="line"><a name="l01074"></a><span class="lineno"> 1074</span>&#160;        }</div><div class="line"><a name="l01075"></a><span class="lineno"> 1075</span>&#160;        </div><div class="line"><a name="l01076"></a><span class="lineno"> 1076</span>&#160;        <span class="keywordflow">if</span>( <a class="code" href="classttmath_1_1_big.html#a00cdfa94cc491487709a3f1356fd0a14">IsZero</a>() )</div><div class="line"><a name="l01077"></a><span class="lineno"> 1077</span>&#160;        {</div><div class="line"><a name="l01078"></a><span class="lineno"> 1078</span>&#160;            *<span class="keyword">this</span> = ss2;</div><div class="line"><a name="l01079"></a><span class="lineno"> 1079</span>&#160;            <span class="keywordflow">return</span> 0;</div><div class="line"><a name="l01080"></a><span class="lineno"> 1080</span>&#160;        }</div><div class="line"><a name="l01081"></a><span class="lineno"> 1081</span>&#160;</div><div class="line"><a name="l01082"></a><span class="lineno"> 1082</span>&#160;        <span class="keywordflow">if</span>( ss2.IsZero() )</div><div class="line"><a name="l01083"></a><span class="lineno"> 1083</span>&#160;            <span class="keywordflow">return</span> 0;</div><div class="line"><a name="l01084"></a><span class="lineno"> 1084</span>&#160;</div><div class="line"><a name="l01085"></a><span class="lineno"> 1085</span>&#160;        <span class="comment">// abs(this) will be &gt;= abs(ss2)</span></div><div class="line"><a name="l01086"></a><span class="lineno"> 1086</span>&#160;        <span class="keywordflow">if</span>( <a class="code" href="classttmath_1_1_big.html#a591311e9b21e4c6dc5ae8e6140e1a7f6">SmallerWithoutSignThan</a>(ss2) )</div><div class="line"><a name="l01087"></a><span class="lineno"> 1087</span>&#160;            <a class="code" href="classttmath_1_1_big.html#a86225c6b7812f9d9ed2a4009b3278222">Swap</a>(ss2);</div><div class="line"><a name="l01088"></a><span class="lineno"> 1088</span>&#160;</div><div class="line"><a name="l01089"></a><span class="lineno"> 1089</span>&#160;        Int&lt;exp&gt; exp_offset( exponent );</div><div class="line"><a name="l01090"></a><span class="lineno"> 1090</span>&#160;        Int&lt;exp&gt; mantissa_size_in_bits( man * <a class="code" href="ttmathtypes_8h.html#aef936ab7a0d7f0c34a9a794b3072cf6a">TTMATH_BITS_PER_UINT</a> );</div><div class="line"><a name="l01091"></a><span class="lineno"> 1091</span>&#160;        exp_offset.Sub( ss2.exponent );</div><div class="line"><a name="l01092"></a><span class="lineno"> 1092</span>&#160;</div><div class="line"><a name="l01093"></a><span class="lineno"> 1093</span>&#160;        <span class="keywordflow">if</span>( exp_offset.Abs() || exp_offset &gt;= mantissa_size_in_bits )</div><div class="line"><a name="l01094"></a><span class="lineno"> 1094</span>&#160;        {</div><div class="line"><a name="l01095"></a><span class="lineno"> 1095</span>&#160;            <span class="comment">// if there is a carry in Abs it means the value in exp_offset has only the lowest bit set</span></div><div class="line"><a name="l01096"></a><span class="lineno"> 1096</span>&#160;            <span class="comment">// so the value is the smallest possible integer</span></div><div class="line"><a name="l01097"></a><span class="lineno"> 1097</span>&#160;            <span class="comment">// and its Abs would be greater than mantissa size in bits</span></div><div class="line"><a name="l01098"></a><span class="lineno"> 1098</span>&#160;</div><div class="line"><a name="l01099"></a><span class="lineno"> 1099</span>&#160;            <span class="comment">// the second value is too small</span></div><div class="line"><a name="l01100"></a><span class="lineno"> 1100</span>&#160;            <span class="keywordflow">return</span> 0;</div><div class="line"><a name="l01101"></a><span class="lineno"> 1101</span>&#160;        }</div><div class="line"><a name="l01102"></a><span class="lineno"> 1102</span>&#160;</div><div class="line"><a name="l01103"></a><span class="lineno"> 1103</span>&#160;        <span class="comment">// exp_offset &lt; mantissa_size_in_bits, moving &#39;exp_offset&#39; times</span></div><div class="line"><a name="l01104"></a><span class="lineno"> 1104</span>&#160;        ss2.mantissa.Rcr( exp_offset.ToInt(), 0 );</div><div class="line"><a name="l01105"></a><span class="lineno"> 1105</span>&#160;        mantissa.<a class="code" href="classttmath_1_1_u_int.html#ab254e021f626e59b5e32e0b8e02ce9be">BitOr</a>(ss2.mantissa);</div><div class="line"><a name="l01106"></a><span class="lineno"> 1106</span>&#160;</div><div class="line"><a name="l01107"></a><span class="lineno"> 1107</span>&#160;        c += <a class="code" href="classttmath_1_1_big.html#aedc4abe8e1d984289b41830e9a1d67fb">Standardizing</a>();</div><div class="line"><a name="l01108"></a><span class="lineno"> 1108</span>&#160;</div><div class="line"><a name="l01109"></a><span class="lineno"> 1109</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="classttmath_1_1_big.html#a0681595612114e8ab1dc9c8f3e8590e7">CheckCarry</a>(c);</div><div class="line"><a name="l01110"></a><span class="lineno"> 1110</span>&#160;    }</div><div class="ttc" id="classttmath_1_1_big_html_ac8f89807eb1878d93d76fe609f4a6b42"><div class="ttname"><a href="classttmath_1_1_big.html#ac8f89807eb1878d93d76fe609f4a6b42">ttmath::Big::IsSign</a></div><div class="ttdeci">bool IsSign() const</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l00658">ttmathbig.h:658</a></div></div>
<div class="ttc" id="classttmath_1_1_big_html_a0681595612114e8ab1dc9c8f3e8590e7"><div class="ttname"><a href="classttmath_1_1_big.html#a0681595612114e8ab1dc9c8f3e8590e7">ttmath::Big::CheckCarry</a></div><div class="ttdeci">uint CheckCarry(uint c)</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l00121">ttmathbig.h:121</a></div></div>
<div class="ttc" id="classttmath_1_1_big_html_a568b91071e386e75dffb0aebdf1c47ec"><div class="ttname"><a href="classttmath_1_1_big.html#a568b91071e386e75dffb0aebdf1c47ec">ttmath::Big::SetNan</a></div><div class="ttdeci">void SetNan()</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l00296">ttmathbig.h:296</a></div></div>
<div class="ttc" id="classttmath_1_1_big_html_a00cdfa94cc491487709a3f1356fd0a14"><div class="ttname"><a href="classttmath_1_1_big.html#a00cdfa94cc491487709a3f1356fd0a14">ttmath::Big::IsZero</a></div><div class="ttdeci">bool IsZero() const</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l00648">ttmathbig.h:648</a></div></div>
<div class="ttc" id="classttmath_1_1_u_int_html_ab254e021f626e59b5e32e0b8e02ce9be"><div class="ttname"><a href="classttmath_1_1_u_int.html#ab254e021f626e59b5e32e0b8e02ce9be">ttmath::UInt::BitOr</a></div><div class="ttdeci">void BitOr(const UInt&lt; value_size &gt; &amp;ss2)</div><div class="ttdef"><b>Definition:</b> <a href="ttmathuint_8h_source.html#l00755">ttmathuint.h:755</a></div></div>
<div class="ttc" id="classttmath_1_1_big_html_a7575e10d9fff2f301a66bb05ab472111"><div class="ttname"><a href="classttmath_1_1_big.html#a7575e10d9fff2f301a66bb05ab472111">ttmath::Big::IsNan</a></div><div class="ttdeci">bool IsNan() const</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l00667">ttmathbig.h:667</a></div></div>
<div class="ttc" id="ttmathtypes_8h_html_aef936ab7a0d7f0c34a9a794b3072cf6a"><div class="ttname"><a href="ttmathtypes_8h.html#aef936ab7a0d7f0c34a9a794b3072cf6a">TTMATH_BITS_PER_UINT</a></div><div class="ttdeci">#define TTMATH_BITS_PER_UINT</div><div class="ttdef"><b>Definition:</b> <a href="ttmathtypes_8h_source.html#l00253">ttmathtypes.h:253</a></div></div>
<div class="ttc" id="classttmath_1_1_big_html_a591311e9b21e4c6dc5ae8e6140e1a7f6"><div class="ttname"><a href="classttmath_1_1_big.html#a591311e9b21e4c6dc5ae8e6140e1a7f6">ttmath::Big::SmallerWithoutSignThan</a></div><div class="ttdeci">bool SmallerWithoutSignThan(const Big&lt; exp, man &gt; &amp;ss2) const</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l05419">ttmathbig.h:5419</a></div></div>
<div class="ttc" id="classttmath_1_1_big_html_aedc4abe8e1d984289b41830e9a1d67fb"><div class="ttname"><a href="classttmath_1_1_big.html#aedc4abe8e1d984289b41830e9a1d67fb">ttmath::Big::Standardizing</a></div><div class="ttdeci">uint Standardizing()</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l00173">ttmathbig.h:173</a></div></div>
<div class="ttc" id="namespacettmath_html_a5c1fccc9761aaa3d2b6dd32c224f5dac"><div class="ttname"><a href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">ttmath::uint</a></div><div class="ttdeci">uint64_t uint</div><div class="ttdef"><b>Definition:</b> <a href="ttmathtypes_8h_source.html#l00238">ttmathtypes.h:238</a></div></div>
<div class="ttc" id="classttmath_1_1_big_html_a86225c6b7812f9d9ed2a4009b3278222"><div class="ttname"><a href="classttmath_1_1_big.html#a86225c6b7812f9d9ed2a4009b3278222">ttmath::Big::Swap</a></div><div class="ttdeci">void Swap(Big&lt; exp, man &gt; &amp;ss2)</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l00316">ttmathbig.h:316</a></div></div>
</div><!-- fragment -->
<p class="reference">References <a class="el" href="ttmathint_8h_source.html#l00168">ttmath::Int&lt; value_size &gt;::Abs()</a>, <a class="el" href="ttmathuint_8h_source.html#l00755">ttmath::UInt&lt; value_size &gt;::BitOr()</a>, <a class="el" href="ttmathbig_8h_source.html#l00121">ttmath::Big&lt; exp, man &gt;::CheckCarry()</a>, <a class="el" href="ttmathbig_8h_source.html#l00667">ttmath::Big&lt; exp, man &gt;::IsNan()</a>, <a class="el" href="ttmathbig_8h_source.html#l00658">ttmath::Big&lt; exp, man &gt;::IsSign()</a>, <a class="el" href="ttmathbig_8h_source.html#l00648">ttmath::Big&lt; exp, man &gt;::IsZero()</a>, <a class="el" href="ttmathuint_8h_source.html#l00555">ttmath::UInt&lt; value_size &gt;::Rcr()</a>, <a class="el" href="ttmathbig_8h_source.html#l00296">ttmath::Big&lt; exp, man &gt;::SetNan()</a>, <a class="el" href="ttmathbig_8h_source.html#l05419">ttmath::Big&lt; exp, man &gt;::SmallerWithoutSignThan()</a>, <a class="el" href="ttmathbig_8h_source.html#l00173">ttmath::Big&lt; exp, man &gt;::Standardizing()</a>, <a class="el" href="ttmathint_8h_source.html#l00299">ttmath::Int&lt; value_size &gt;::Sub()</a>, <a class="el" href="ttmathbig_8h_source.html#l00316">ttmath::Big&lt; exp, man &gt;::Swap()</a>, <a class="el" href="ttmathint_8h_source.html#l01132">ttmath::Int&lt; value_size &gt;::ToInt()</a>, and <a class="el" href="ttmathtypes_8h_source.html#l00253">TTMATH_BITS_PER_UINT</a>.</p>

</div>
</div>
<a id="a7d291abddb1d43ca4784ba152cdd6d25"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7d291abddb1d43ca4784ba152cdd6d25">&#9670;&nbsp;</a></span>BitXor()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;uint exp, uint man&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a> <a class="el" href="classttmath_1_1_big.html">ttmath::Big</a>&lt; exp, man &gt;::BitXor </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classttmath_1_1_big.html">Big</a>&lt; exp, man &gt;&#160;</td>
          <td class="paramname"><em>ss2</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>bitwise XOR</p>
<p>this and ss2 must be &gt;= 0 return values:</p>
<ul>
<li>0 - ok</li>
<li>1 - carry</li>
<li>2 - this or ss2 was negative </li>
</ul>

<p class="definition">Definition at line <a class="el" href="ttmathbig_8h_source.html#l01123">1123</a> of file <a class="el" href="ttmathbig_8h_source.html">ttmathbig.h</a>.</p>
<div class="fragment"><div class="line"><a name="l01124"></a><span class="lineno"> 1124</span>&#160;    {</div><div class="line"><a name="l01125"></a><span class="lineno"> 1125</span>&#160;        <a class="code" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a> c = 0;</div><div class="line"><a name="l01126"></a><span class="lineno"> 1126</span>&#160;</div><div class="line"><a name="l01127"></a><span class="lineno"> 1127</span>&#160;        <span class="keywordflow">if</span>( <a class="code" href="classttmath_1_1_big.html#a7575e10d9fff2f301a66bb05ab472111">IsNan</a>() || ss2.IsNan() )</div><div class="line"><a name="l01128"></a><span class="lineno"> 1128</span>&#160;            <span class="keywordflow">return</span> <a class="code" href="classttmath_1_1_big.html#a0681595612114e8ab1dc9c8f3e8590e7">CheckCarry</a>(1);</div><div class="line"><a name="l01129"></a><span class="lineno"> 1129</span>&#160;</div><div class="line"><a name="l01130"></a><span class="lineno"> 1130</span>&#160;        <span class="keywordflow">if</span>( <a class="code" href="classttmath_1_1_big.html#ac8f89807eb1878d93d76fe609f4a6b42">IsSign</a>() || ss2.IsSign() )</div><div class="line"><a name="l01131"></a><span class="lineno"> 1131</span>&#160;        {</div><div class="line"><a name="l01132"></a><span class="lineno"> 1132</span>&#160;            <a class="code" href="classttmath_1_1_big.html#a568b91071e386e75dffb0aebdf1c47ec">SetNan</a>();</div><div class="line"><a name="l01133"></a><span class="lineno"> 1133</span>&#160;            <span class="keywordflow">return</span> 2;</div><div class="line"><a name="l01134"></a><span class="lineno"> 1134</span>&#160;        }</div><div class="line"><a name="l01135"></a><span class="lineno"> 1135</span>&#160;        </div><div class="line"><a name="l01136"></a><span class="lineno"> 1136</span>&#160;        <span class="keywordflow">if</span>( ss2.IsZero() )</div><div class="line"><a name="l01137"></a><span class="lineno"> 1137</span>&#160;            <span class="keywordflow">return</span> 0;</div><div class="line"><a name="l01138"></a><span class="lineno"> 1138</span>&#160;</div><div class="line"><a name="l01139"></a><span class="lineno"> 1139</span>&#160;        <span class="keywordflow">if</span>( <a class="code" href="classttmath_1_1_big.html#a00cdfa94cc491487709a3f1356fd0a14">IsZero</a>() )</div><div class="line"><a name="l01140"></a><span class="lineno"> 1140</span>&#160;        {</div><div class="line"><a name="l01141"></a><span class="lineno"> 1141</span>&#160;            *<span class="keyword">this</span> = ss2;</div><div class="line"><a name="l01142"></a><span class="lineno"> 1142</span>&#160;            <span class="keywordflow">return</span> 0;</div><div class="line"><a name="l01143"></a><span class="lineno"> 1143</span>&#160;        }</div><div class="line"><a name="l01144"></a><span class="lineno"> 1144</span>&#160;</div><div class="line"><a name="l01145"></a><span class="lineno"> 1145</span>&#160;        <span class="comment">// abs(this) will be &gt;= abs(ss2)</span></div><div class="line"><a name="l01146"></a><span class="lineno"> 1146</span>&#160;        <span class="keywordflow">if</span>( <a class="code" href="classttmath_1_1_big.html#a591311e9b21e4c6dc5ae8e6140e1a7f6">SmallerWithoutSignThan</a>(ss2) )</div><div class="line"><a name="l01147"></a><span class="lineno"> 1147</span>&#160;            <a class="code" href="classttmath_1_1_big.html#a86225c6b7812f9d9ed2a4009b3278222">Swap</a>(ss2);</div><div class="line"><a name="l01148"></a><span class="lineno"> 1148</span>&#160;</div><div class="line"><a name="l01149"></a><span class="lineno"> 1149</span>&#160;        Int&lt;exp&gt; exp_offset( exponent );</div><div class="line"><a name="l01150"></a><span class="lineno"> 1150</span>&#160;        Int&lt;exp&gt; mantissa_size_in_bits( man * <a class="code" href="ttmathtypes_8h.html#aef936ab7a0d7f0c34a9a794b3072cf6a">TTMATH_BITS_PER_UINT</a> );</div><div class="line"><a name="l01151"></a><span class="lineno"> 1151</span>&#160;        exp_offset.Sub( ss2.exponent );</div><div class="line"><a name="l01152"></a><span class="lineno"> 1152</span>&#160;</div><div class="line"><a name="l01153"></a><span class="lineno"> 1153</span>&#160;        <span class="keywordflow">if</span>( exp_offset.Abs() || exp_offset &gt;= mantissa_size_in_bits )</div><div class="line"><a name="l01154"></a><span class="lineno"> 1154</span>&#160;        {</div><div class="line"><a name="l01155"></a><span class="lineno"> 1155</span>&#160;            <span class="comment">// if there is a carry in Abs it means the value in exp_offset has only the lowest bit set</span></div><div class="line"><a name="l01156"></a><span class="lineno"> 1156</span>&#160;            <span class="comment">// so the value is the smallest possible integer</span></div><div class="line"><a name="l01157"></a><span class="lineno"> 1157</span>&#160;            <span class="comment">// and its Abs would be greater than mantissa size in bits</span></div><div class="line"><a name="l01158"></a><span class="lineno"> 1158</span>&#160;</div><div class="line"><a name="l01159"></a><span class="lineno"> 1159</span>&#160;            <span class="comment">// the second value is too small</span></div><div class="line"><a name="l01160"></a><span class="lineno"> 1160</span>&#160;            <span class="keywordflow">return</span> 0;</div><div class="line"><a name="l01161"></a><span class="lineno"> 1161</span>&#160;        }</div><div class="line"><a name="l01162"></a><span class="lineno"> 1162</span>&#160;</div><div class="line"><a name="l01163"></a><span class="lineno"> 1163</span>&#160;        <span class="comment">// exp_offset &lt; mantissa_size_in_bits, moving &#39;exp_offset&#39; times</span></div><div class="line"><a name="l01164"></a><span class="lineno"> 1164</span>&#160;        ss2.mantissa.Rcr( exp_offset.ToInt(), 0 );</div><div class="line"><a name="l01165"></a><span class="lineno"> 1165</span>&#160;        mantissa.<a class="code" href="classttmath_1_1_u_int.html#a82d9a7e2147c21a09bd7480d5d046336">BitXor</a>(ss2.mantissa);</div><div class="line"><a name="l01166"></a><span class="lineno"> 1166</span>&#160;</div><div class="line"><a name="l01167"></a><span class="lineno"> 1167</span>&#160;        c += <a class="code" href="classttmath_1_1_big.html#aedc4abe8e1d984289b41830e9a1d67fb">Standardizing</a>();</div><div class="line"><a name="l01168"></a><span class="lineno"> 1168</span>&#160;</div><div class="line"><a name="l01169"></a><span class="lineno"> 1169</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="classttmath_1_1_big.html#a0681595612114e8ab1dc9c8f3e8590e7">CheckCarry</a>(c);</div><div class="line"><a name="l01170"></a><span class="lineno"> 1170</span>&#160;    }</div><div class="ttc" id="classttmath_1_1_big_html_ac8f89807eb1878d93d76fe609f4a6b42"><div class="ttname"><a href="classttmath_1_1_big.html#ac8f89807eb1878d93d76fe609f4a6b42">ttmath::Big::IsSign</a></div><div class="ttdeci">bool IsSign() const</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l00658">ttmathbig.h:658</a></div></div>
<div class="ttc" id="classttmath_1_1_big_html_a0681595612114e8ab1dc9c8f3e8590e7"><div class="ttname"><a href="classttmath_1_1_big.html#a0681595612114e8ab1dc9c8f3e8590e7">ttmath::Big::CheckCarry</a></div><div class="ttdeci">uint CheckCarry(uint c)</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l00121">ttmathbig.h:121</a></div></div>
<div class="ttc" id="classttmath_1_1_big_html_a568b91071e386e75dffb0aebdf1c47ec"><div class="ttname"><a href="classttmath_1_1_big.html#a568b91071e386e75dffb0aebdf1c47ec">ttmath::Big::SetNan</a></div><div class="ttdeci">void SetNan()</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l00296">ttmathbig.h:296</a></div></div>
<div class="ttc" id="classttmath_1_1_big_html_a00cdfa94cc491487709a3f1356fd0a14"><div class="ttname"><a href="classttmath_1_1_big.html#a00cdfa94cc491487709a3f1356fd0a14">ttmath::Big::IsZero</a></div><div class="ttdeci">bool IsZero() const</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l00648">ttmathbig.h:648</a></div></div>
<div class="ttc" id="classttmath_1_1_big_html_a7575e10d9fff2f301a66bb05ab472111"><div class="ttname"><a href="classttmath_1_1_big.html#a7575e10d9fff2f301a66bb05ab472111">ttmath::Big::IsNan</a></div><div class="ttdeci">bool IsNan() const</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l00667">ttmathbig.h:667</a></div></div>
<div class="ttc" id="ttmathtypes_8h_html_aef936ab7a0d7f0c34a9a794b3072cf6a"><div class="ttname"><a href="ttmathtypes_8h.html#aef936ab7a0d7f0c34a9a794b3072cf6a">TTMATH_BITS_PER_UINT</a></div><div class="ttdeci">#define TTMATH_BITS_PER_UINT</div><div class="ttdef"><b>Definition:</b> <a href="ttmathtypes_8h_source.html#l00253">ttmathtypes.h:253</a></div></div>
<div class="ttc" id="classttmath_1_1_u_int_html_a82d9a7e2147c21a09bd7480d5d046336"><div class="ttname"><a href="classttmath_1_1_u_int.html#a82d9a7e2147c21a09bd7480d5d046336">ttmath::UInt::BitXor</a></div><div class="ttdeci">void BitXor(const UInt&lt; value_size &gt; &amp;ss2)</div><div class="ttdef"><b>Definition:</b> <a href="ttmathuint_8h_source.html#l00767">ttmathuint.h:767</a></div></div>
<div class="ttc" id="classttmath_1_1_big_html_a591311e9b21e4c6dc5ae8e6140e1a7f6"><div class="ttname"><a href="classttmath_1_1_big.html#a591311e9b21e4c6dc5ae8e6140e1a7f6">ttmath::Big::SmallerWithoutSignThan</a></div><div class="ttdeci">bool SmallerWithoutSignThan(const Big&lt; exp, man &gt; &amp;ss2) const</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l05419">ttmathbig.h:5419</a></div></div>
<div class="ttc" id="classttmath_1_1_big_html_aedc4abe8e1d984289b41830e9a1d67fb"><div class="ttname"><a href="classttmath_1_1_big.html#aedc4abe8e1d984289b41830e9a1d67fb">ttmath::Big::Standardizing</a></div><div class="ttdeci">uint Standardizing()</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l00173">ttmathbig.h:173</a></div></div>
<div class="ttc" id="namespacettmath_html_a5c1fccc9761aaa3d2b6dd32c224f5dac"><div class="ttname"><a href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">ttmath::uint</a></div><div class="ttdeci">uint64_t uint</div><div class="ttdef"><b>Definition:</b> <a href="ttmathtypes_8h_source.html#l00238">ttmathtypes.h:238</a></div></div>
<div class="ttc" id="classttmath_1_1_big_html_a86225c6b7812f9d9ed2a4009b3278222"><div class="ttname"><a href="classttmath_1_1_big.html#a86225c6b7812f9d9ed2a4009b3278222">ttmath::Big::Swap</a></div><div class="ttdeci">void Swap(Big&lt; exp, man &gt; &amp;ss2)</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l00316">ttmathbig.h:316</a></div></div>
</div><!-- fragment -->
<p class="reference">References <a class="el" href="ttmathint_8h_source.html#l00168">ttmath::Int&lt; value_size &gt;::Abs()</a>, <a class="el" href="ttmathuint_8h_source.html#l00767">ttmath::UInt&lt; value_size &gt;::BitXor()</a>, <a class="el" href="ttmathbig_8h_source.html#l00121">ttmath::Big&lt; exp, man &gt;::CheckCarry()</a>, <a class="el" href="ttmathbig_8h_source.html#l00667">ttmath::Big&lt; exp, man &gt;::IsNan()</a>, <a class="el" href="ttmathbig_8h_source.html#l00658">ttmath::Big&lt; exp, man &gt;::IsSign()</a>, <a class="el" href="ttmathbig_8h_source.html#l00648">ttmath::Big&lt; exp, man &gt;::IsZero()</a>, <a class="el" href="ttmathuint_8h_source.html#l00555">ttmath::UInt&lt; value_size &gt;::Rcr()</a>, <a class="el" href="ttmathbig_8h_source.html#l00296">ttmath::Big&lt; exp, man &gt;::SetNan()</a>, <a class="el" href="ttmathbig_8h_source.html#l05419">ttmath::Big&lt; exp, man &gt;::SmallerWithoutSignThan()</a>, <a class="el" href="ttmathbig_8h_source.html#l00173">ttmath::Big&lt; exp, man &gt;::Standardizing()</a>, <a class="el" href="ttmathint_8h_source.html#l00299">ttmath::Int&lt; value_size &gt;::Sub()</a>, <a class="el" href="ttmathbig_8h_source.html#l00316">ttmath::Big&lt; exp, man &gt;::Swap()</a>, <a class="el" href="ttmathint_8h_source.html#l01132">ttmath::Int&lt; value_size &gt;::ToInt()</a>, and <a class="el" href="ttmathtypes_8h_source.html#l00253">TTMATH_BITS_PER_UINT</a>.</p>

</div>
</div>
<a id="a5ab986f32abce29ad9183833430e6723"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5ab986f32abce29ad9183833430e6723">&#9670;&nbsp;</a></span>ChangeSign()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;uint exp, uint man&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classttmath_1_1_big.html">ttmath::Big</a>&lt; exp, man &gt;::ChangeSign </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>this method changes the sign when there is a value of zero then the sign is not changed</p>
<p>samples</p><ul>
<li>-1 -&gt; 1</li>
<li>2 -&gt; -2 </li>
</ul>

<p class="definition">Definition at line <a class="el" href="ttmathbig_8h_source.html#l00740">740</a> of file <a class="el" href="ttmathbig_8h_source.html">ttmathbig.h</a>.</p>
<div class="fragment"><div class="line"><a name="l00741"></a><span class="lineno">  741</span>&#160;    {</div><div class="line"><a name="l00742"></a><span class="lineno">  742</span>&#160;        <span class="comment">// we don&#39;t have to check the NaN flag here</span></div><div class="line"><a name="l00743"></a><span class="lineno">  743</span>&#160;</div><div class="line"><a name="l00744"></a><span class="lineno">  744</span>&#160;        <span class="keywordflow">if</span>( <a class="code" href="classttmath_1_1_big.html#a00cdfa94cc491487709a3f1356fd0a14">IsZero</a>() )</div><div class="line"><a name="l00745"></a><span class="lineno">  745</span>&#160;            <span class="keywordflow">return</span>;</div><div class="line"><a name="l00746"></a><span class="lineno">  746</span>&#160;</div><div class="line"><a name="l00747"></a><span class="lineno">  747</span>&#160;        <span class="keywordflow">if</span>( <a class="code" href="classttmath_1_1_big.html#ac8f89807eb1878d93d76fe609f4a6b42">IsSign</a>() )</div><div class="line"><a name="l00748"></a><span class="lineno">  748</span>&#160;            <a class="code" href="classttmath_1_1_big.html#a9b37f06bfa5793ecbfe889e7ad7931b2">ClearInfoBit</a>(<a class="code" href="ttmathbig_8h.html#a9222f49a8d16599b8b7c77c149796649">TTMATH_BIG_SIGN</a>);</div><div class="line"><a name="l00749"></a><span class="lineno">  749</span>&#160;        <span class="keywordflow">else</span></div><div class="line"><a name="l00750"></a><span class="lineno">  750</span>&#160;            <a class="code" href="classttmath_1_1_big.html#ae851f864ffab7964931e6b0f7632a377">SetInfoBit</a>(<a class="code" href="ttmathbig_8h.html#a9222f49a8d16599b8b7c77c149796649">TTMATH_BIG_SIGN</a>);</div><div class="line"><a name="l00751"></a><span class="lineno">  751</span>&#160;    }</div><div class="ttc" id="classttmath_1_1_big_html_ac8f89807eb1878d93d76fe609f4a6b42"><div class="ttname"><a href="classttmath_1_1_big.html#ac8f89807eb1878d93d76fe609f4a6b42">ttmath::Big::IsSign</a></div><div class="ttdeci">bool IsSign() const</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l00658">ttmathbig.h:658</a></div></div>
<div class="ttc" id="classttmath_1_1_big_html_a9b37f06bfa5793ecbfe889e7ad7931b2"><div class="ttname"><a href="classttmath_1_1_big.html#a9b37f06bfa5793ecbfe889e7ad7931b2">ttmath::Big::ClearInfoBit</a></div><div class="ttdeci">void ClearInfoBit(unsigned char bit)</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l00224">ttmathbig.h:224</a></div></div>
<div class="ttc" id="classttmath_1_1_big_html_a00cdfa94cc491487709a3f1356fd0a14"><div class="ttname"><a href="classttmath_1_1_big.html#a00cdfa94cc491487709a3f1356fd0a14">ttmath::Big::IsZero</a></div><div class="ttdeci">bool IsZero() const</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l00648">ttmathbig.h:648</a></div></div>
<div class="ttc" id="ttmathbig_8h_html_a9222f49a8d16599b8b7c77c149796649"><div class="ttname"><a href="ttmathbig_8h.html#a9222f49a8d16599b8b7c77c149796649">TTMATH_BIG_SIGN</a></div><div class="ttdeci">#define TTMATH_BIG_SIGN</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l00097">ttmathbig.h:97</a></div></div>
<div class="ttc" id="classttmath_1_1_big_html_ae851f864ffab7964931e6b0f7632a377"><div class="ttname"><a href="classttmath_1_1_big.html#ae851f864ffab7964931e6b0f7632a377">ttmath::Big::SetInfoBit</a></div><div class="ttdeci">void SetInfoBit(unsigned char bit)</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l00236">ttmathbig.h:236</a></div></div>
</div><!-- fragment -->
<p class="reference">References <a class="el" href="ttmathbig_8h_source.html#l00224">ttmath::Big&lt; exp, man &gt;::ClearInfoBit()</a>, <a class="el" href="ttmathbig_8h_source.html#l00658">ttmath::Big&lt; exp, man &gt;::IsSign()</a>, <a class="el" href="ttmathbig_8h_source.html#l00648">ttmath::Big&lt; exp, man &gt;::IsZero()</a>, <a class="el" href="ttmathbig_8h_source.html#l00236">ttmath::Big&lt; exp, man &gt;::SetInfoBit()</a>, and <a class="el" href="ttmathbig_8h_source.html#l00097">TTMATH_BIG_SIGN</a>.</p>

<p class="reference">Referenced by <a class="el" href="ttmathbig_8h_source.html#l00930">ttmath::Big&lt; exp, man &gt;::Add()</a>, and <a class="el" href="ttmathbig_8h_source.html#l05608">ttmath::Big&lt; exp, man &gt;::operator-()</a>.</p>

</div>
</div>
<a id="a0681595612114e8ab1dc9c8f3e8590e7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0681595612114e8ab1dc9c8f3e8590e7">&#9670;&nbsp;</a></span>CheckCarry()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;uint exp, uint man&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a> <a class="el" href="classttmath_1_1_big.html">ttmath::Big</a>&lt; exp, man &gt;::CheckCarry </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a>&#160;</td>
          <td class="paramname"><em>c</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>this method sets NaN if there was a carry (and returns 1 in such a case)</p>
<p>c can be 0, 1 or other value different from zero </p>

<p class="definition">Definition at line <a class="el" href="ttmathbig_8h_source.html#l00121">121</a> of file <a class="el" href="ttmathbig_8h_source.html">ttmathbig.h</a>.</p>
<div class="fragment"><div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;    {</div><div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;        <span class="keywordflow">if</span>( c != 0 )</div><div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;        {</div><div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;            <a class="code" href="classttmath_1_1_big.html#a568b91071e386e75dffb0aebdf1c47ec">SetNan</a>();</div><div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;            <span class="keywordflow">return</span> 1;</div><div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;        }</div><div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;</div><div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;    <span class="keywordflow">return</span> 0;</div><div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;    }</div><div class="ttc" id="classttmath_1_1_big_html_a568b91071e386e75dffb0aebdf1c47ec"><div class="ttname"><a href="classttmath_1_1_big.html#a568b91071e386e75dffb0aebdf1c47ec">ttmath::Big::SetNan</a></div><div class="ttdeci">void SetNan()</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l00296">ttmathbig.h:296</a></div></div>
</div><!-- fragment -->
<p class="reference">References <a class="el" href="ttmathbig_8h_source.html#l00296">ttmath::Big&lt; exp, man &gt;::SetNan()</a>.</p>

<p class="reference">Referenced by <a class="el" href="ttmathbig_8h_source.html#l00930">ttmath::Big&lt; exp, man &gt;::Add()</a>, <a class="el" href="ttmathbig_8h_source.html#l01002">ttmath::Big&lt; exp, man &gt;::BitAnd()</a>, <a class="el" href="ttmathbig_8h_source.html#l01063">ttmath::Big&lt; exp, man &gt;::BitOr()</a>, <a class="el" href="ttmathbig_8h_source.html#l01123">ttmath::Big&lt; exp, man &gt;::BitXor()</a>, <a class="el" href="ttmathbig_8h_source.html#l01966">ttmath::Big&lt; exp, man &gt;::Exp()</a>, <a class="el" href="ttmathbig_8h_source.html#l02240">ttmath::Big&lt; exp, man &gt;::FromBig()</a>, <a class="el" href="ttmathbig_8h_source.html#l02144">ttmath::Big&lt; exp, man &gt;::Ln()</a>, <a class="el" href="ttmathbig_8h_source.html#l02189">ttmath::Big&lt; exp, man &gt;::Log()</a>, <a class="el" href="ttmathbig_8h_source.html#l01179">ttmath::Big&lt; exp, man &gt;::MulUInt()</a>, <a class="el" href="ttmathbig_8h_source.html#l01584">ttmath::Big&lt; exp, man &gt;::Pow()</a>, <a class="el" href="ttmathbig_8h_source.html#l01767">ttmath::Big&lt; exp, man &gt;::PowFrac()</a>, <a class="el" href="ttmathbig_8h_source.html#l01731">ttmath::Big&lt; exp, man &gt;::PowInt()</a>, <a class="el" href="ttmathbig_8h_source.html#l01675">ttmath::Big&lt; exp, man &gt;::PowUInt()</a>, <a class="el" href="ttmathbig_8h_source.html#l05929">ttmath::Big&lt; exp, man &gt;::Round()</a>, and <a class="el" href="ttmathbig_8h_source.html#l01835">ttmath::Big&lt; exp, man &gt;::Sqrt()</a>.</p>

</div>
</div>
<a id="a9b37f06bfa5793ecbfe889e7ad7931b2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9b37f06bfa5793ecbfe889e7ad7931b2">&#9670;&nbsp;</a></span>ClearInfoBit()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;uint exp, uint man&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classttmath_1_1_big.html">ttmath::Big</a>&lt; exp, man &gt;::ClearInfoBit </td>
          <td>(</td>
          <td class="paramtype">unsigned char&#160;</td>
          <td class="paramname"><em>bit</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>this method clears a specific bit in the 'info' variable</p>
<p>bit is one of: TTMATH_BIG_SIGN, TTMATH_BIG_NAN etc. </p>

<p class="definition">Definition at line <a class="el" href="ttmathbig_8h_source.html#l00224">224</a> of file <a class="el" href="ttmathbig_8h_source.html">ttmathbig.h</a>.</p>
<div class="fragment"><div class="line"><a name="l00225"></a><span class="lineno">  225</span>&#160;    {</div><div class="line"><a name="l00226"></a><span class="lineno">  226</span>&#160;        info = info &amp; (~bit);</div><div class="line"><a name="l00227"></a><span class="lineno">  227</span>&#160;    }</div></div><!-- fragment -->
<p class="reference">Referenced by <a class="el" href="ttmathbig_8h_source.html#l00682">ttmath::Big&lt; exp, man &gt;::Abs()</a>, <a class="el" href="ttmathbig_8h_source.html#l00740">ttmath::Big&lt; exp, man &gt;::ChangeSign()</a>, and <a class="el" href="ttmathbig_8h_source.html#l00173">ttmath::Big&lt; exp, man &gt;::Standardizing()</a>.</p>

</div>
</div>
<a id="a57fa951410244551c3449910fe129d64"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a57fa951410244551c3449910fe129d64">&#9670;&nbsp;</a></span>Div()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;uint exp, uint man&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a> <a class="el" href="classttmath_1_1_big.html">ttmath::Big</a>&lt; exp, man &gt;::Div </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classttmath_1_1_big.html">Big</a>&lt; exp, man &gt; &amp;&#160;</td>
          <td class="paramname"><em>ss2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>round</em> = <code>true</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>division this = this / ss2</p>
<p>return value:</p><ul>
<li>0 - ok</li>
<li>1 - carry (in a division carry can be as well)</li>
<li>2 - improper argument (ss2 is zero) </li>
</ul>

<p class="definition">Definition at line <a class="el" href="ttmathbig_8h_source.html#l01470">1470</a> of file <a class="el" href="ttmathbig_8h_source.html">ttmathbig.h</a>.</p>
<div class="fragment"><div class="line"><a name="l01471"></a><span class="lineno"> 1471</span>&#160;    {</div><div class="line"><a name="l01472"></a><span class="lineno"> 1472</span>&#160;        <span class="keywordflow">if</span>( <span class="keyword">this</span> == &amp;ss2 )</div><div class="line"><a name="l01473"></a><span class="lineno"> 1473</span>&#160;        {</div><div class="line"><a name="l01474"></a><span class="lineno"> 1474</span>&#160;            Big&lt;exp, man&gt; copy_ss2(ss2);</div><div class="line"><a name="l01475"></a><span class="lineno"> 1475</span>&#160;            <span class="keywordflow">return</span> DivRef(copy_ss2, round);</div><div class="line"><a name="l01476"></a><span class="lineno"> 1476</span>&#160;        }</div><div class="line"><a name="l01477"></a><span class="lineno"> 1477</span>&#160;        <span class="keywordflow">else</span></div><div class="line"><a name="l01478"></a><span class="lineno"> 1478</span>&#160;        {</div><div class="line"><a name="l01479"></a><span class="lineno"> 1479</span>&#160;            <span class="keywordflow">return</span> DivRef(ss2, round);</div><div class="line"><a name="l01480"></a><span class="lineno"> 1480</span>&#160;        }</div><div class="line"><a name="l01481"></a><span class="lineno"> 1481</span>&#160;    }</div></div><!-- fragment -->
<p class="reference">Referenced by <a class="el" href="ttmathbig_8h_source.html#l02189">ttmath::Big&lt; exp, man &gt;::Log()</a>, <a class="el" href="ttmathbig_8h_source.html#l01636">ttmath::Big&lt; exp, man &gt;::Pow()</a>, and <a class="el" href="ttmathbig_8h_source.html#l01731">ttmath::Big&lt; exp, man &gt;::PowInt()</a>.</p>

</div>
</div>
<a id="af74a3fa21ce1e4a4fb308a34340fb5b0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af74a3fa21ce1e4a4fb308a34340fb5b0">&#9670;&nbsp;</a></span>EqualWithoutSign()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;uint exp, uint man&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">bool <a class="el" href="classttmath_1_1_big.html">ttmath::Big</a>&lt; exp, man &gt;::EqualWithoutSign </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classttmath_1_1_big.html">Big</a>&lt; exp, man &gt; &amp;&#160;</td>
          <td class="paramname"><em>ss2</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>this method performs the formula 'abs(this) == abs(ss2)' and returns the result</p>
<p>(in other words it treats 'this' and 'ss2' as values without a sign) we don't check the NaN flag </p>

<p class="definition">Definition at line <a class="el" href="ttmathbig_8h_source.html#l05491">5491</a> of file <a class="el" href="ttmathbig_8h_source.html">ttmathbig.h</a>.</p>
<div class="fragment"><div class="line"><a name="l05492"></a><span class="lineno"> 5492</span>&#160;    {</div><div class="line"><a name="l05493"></a><span class="lineno"> 5493</span>&#160;        <span class="keywordflow">if</span>( <a class="code" href="classttmath_1_1_big.html#a00cdfa94cc491487709a3f1356fd0a14">IsZero</a>() )</div><div class="line"><a name="l05494"></a><span class="lineno"> 5494</span>&#160;        {</div><div class="line"><a name="l05495"></a><span class="lineno"> 5495</span>&#160;            <span class="keywordflow">if</span>( ss2.IsZero() )</div><div class="line"><a name="l05496"></a><span class="lineno"> 5496</span>&#160;            {</div><div class="line"><a name="l05497"></a><span class="lineno"> 5497</span>&#160;                <span class="comment">// we&#39;ve got two zeroes</span></div><div class="line"><a name="l05498"></a><span class="lineno"> 5498</span>&#160;                <span class="keywordflow">return</span> <span class="keyword">true</span>;</div><div class="line"><a name="l05499"></a><span class="lineno"> 5499</span>&#160;            }</div><div class="line"><a name="l05500"></a><span class="lineno"> 5500</span>&#160;            <span class="keywordflow">else</span></div><div class="line"><a name="l05501"></a><span class="lineno"> 5501</span>&#160;            {</div><div class="line"><a name="l05502"></a><span class="lineno"> 5502</span>&#160;                <span class="comment">// this==0 and ss2!=0</span></div><div class="line"><a name="l05503"></a><span class="lineno"> 5503</span>&#160;                <span class="keywordflow">return</span> <span class="keyword">false</span>;</div><div class="line"><a name="l05504"></a><span class="lineno"> 5504</span>&#160;            }</div><div class="line"><a name="l05505"></a><span class="lineno"> 5505</span>&#160;        }</div><div class="line"><a name="l05506"></a><span class="lineno"> 5506</span>&#160;</div><div class="line"><a name="l05507"></a><span class="lineno"> 5507</span>&#160;        <span class="keywordflow">if</span>( ss2.IsZero() )</div><div class="line"><a name="l05508"></a><span class="lineno"> 5508</span>&#160;        {</div><div class="line"><a name="l05509"></a><span class="lineno"> 5509</span>&#160;            <span class="comment">// this!=0 and ss2==0</span></div><div class="line"><a name="l05510"></a><span class="lineno"> 5510</span>&#160;            <span class="keywordflow">return</span> <span class="keyword">false</span>;</div><div class="line"><a name="l05511"></a><span class="lineno"> 5511</span>&#160;        }</div><div class="line"><a name="l05512"></a><span class="lineno"> 5512</span>&#160;</div><div class="line"><a name="l05513"></a><span class="lineno"> 5513</span>&#160;        <span class="keywordflow">if</span>( exponent==ss2.exponent &amp;&amp; mantissa==ss2.mantissa )</div><div class="line"><a name="l05514"></a><span class="lineno"> 5514</span>&#160;            <span class="keywordflow">return</span> <span class="keyword">true</span>;</div><div class="line"><a name="l05515"></a><span class="lineno"> 5515</span>&#160;</div><div class="line"><a name="l05516"></a><span class="lineno"> 5516</span>&#160;    <span class="keywordflow">return</span> <span class="keyword">false</span>;</div><div class="line"><a name="l05517"></a><span class="lineno"> 5517</span>&#160;    }</div><div class="ttc" id="classttmath_1_1_big_html_a00cdfa94cc491487709a3f1356fd0a14"><div class="ttname"><a href="classttmath_1_1_big.html#a00cdfa94cc491487709a3f1356fd0a14">ttmath::Big::IsZero</a></div><div class="ttdeci">bool IsZero() const</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l00648">ttmathbig.h:648</a></div></div>
</div><!-- fragment -->
<p class="reference">References <a class="el" href="ttmathbig_8h_source.html#l00648">ttmath::Big&lt; exp, man &gt;::IsZero()</a>.</p>

</div>
</div>
<a id="a2c2c7de54743b12c05f1bfea7b153eba"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2c2c7de54743b12c05f1bfea7b153eba">&#9670;&nbsp;</a></span>Exp()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;uint exp, uint man&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a> <a class="el" href="classttmath_1_1_big.html">ttmath::Big</a>&lt; exp, man &gt;::Exp </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classttmath_1_1_big.html">Big</a>&lt; exp, man &gt; &amp;&#160;</td>
          <td class="paramname"><em>x</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Exponent this = exp(x) = e^x</p>
<p>we're using the fact that our value is stored in form of: </p><pre class="fragment">x = mantissa * 2^exponent
</pre><p>then </p><pre class="fragment">e^x = e^(mantissa* 2^exponent) or
e^x = (e^mantissa)^(2^exponent)
</pre><p>'Exp' returns a carry if we can't count the result ('x' is too big) </p>

<p class="definition">Definition at line <a class="el" href="ttmathbig_8h_source.html#l01966">1966</a> of file <a class="el" href="ttmathbig_8h_source.html">ttmathbig.h</a>.</p>
<div class="fragment"><div class="line"><a name="l01967"></a><span class="lineno"> 1967</span>&#160;    {</div><div class="line"><a name="l01968"></a><span class="lineno"> 1968</span>&#160;    <a class="code" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a> c = 0;</div><div class="line"><a name="l01969"></a><span class="lineno"> 1969</span>&#160;        </div><div class="line"><a name="l01970"></a><span class="lineno"> 1970</span>&#160;        <span class="keywordflow">if</span>( x.IsNan() )</div><div class="line"><a name="l01971"></a><span class="lineno"> 1971</span>&#160;            <span class="keywordflow">return</span> <a class="code" href="classttmath_1_1_big.html#a0681595612114e8ab1dc9c8f3e8590e7">CheckCarry</a>(1);</div><div class="line"><a name="l01972"></a><span class="lineno"> 1972</span>&#160;</div><div class="line"><a name="l01973"></a><span class="lineno"> 1973</span>&#160;        <span class="keywordflow">if</span>( x.IsZero() )</div><div class="line"><a name="l01974"></a><span class="lineno"> 1974</span>&#160;        {</div><div class="line"><a name="l01975"></a><span class="lineno"> 1975</span>&#160;            <a class="code" href="classttmath_1_1_big.html#a5243a9f27365aa90ef3504fd9e52e476">SetOne</a>();</div><div class="line"><a name="l01976"></a><span class="lineno"> 1976</span>&#160;        <span class="keywordflow">return</span> 0;</div><div class="line"><a name="l01977"></a><span class="lineno"> 1977</span>&#160;        }</div><div class="line"><a name="l01978"></a><span class="lineno"> 1978</span>&#160;</div><div class="line"><a name="l01979"></a><span class="lineno"> 1979</span>&#160;        <span class="comment">// m will be the value of the mantissa in range (-1,1)</span></div><div class="line"><a name="l01980"></a><span class="lineno"> 1980</span>&#160;        Big&lt;exp,man&gt; m(x);</div><div class="line"><a name="l01981"></a><span class="lineno"> 1981</span>&#160;        m.exponent = -<a class="code" href="namespacettmath.html#a4b0a5dcba29a2c7a0abc8b4403a25ac4">sint</a>(man*<a class="code" href="ttmathtypes_8h.html#aef936ab7a0d7f0c34a9a794b3072cf6a">TTMATH_BITS_PER_UINT</a>);</div><div class="line"><a name="l01982"></a><span class="lineno"> 1982</span>&#160;</div><div class="line"><a name="l01983"></a><span class="lineno"> 1983</span>&#160;        <span class="comment">// &#39;e_&#39; will be the value of &#39;2^exponent&#39;</span></div><div class="line"><a name="l01984"></a><span class="lineno"> 1984</span>&#160;        <span class="comment">//   e_.mantissa.table[man-1] = TTMATH_UINT_HIGHEST_BIT;  and</span></div><div class="line"><a name="l01985"></a><span class="lineno"> 1985</span>&#160;        <span class="comment">//   e_.exponent.Add(1) mean:</span></div><div class="line"><a name="l01986"></a><span class="lineno"> 1986</span>&#160;        <span class="comment">//     e_.mantissa.table[0] = 1;</span></div><div class="line"><a name="l01987"></a><span class="lineno"> 1987</span>&#160;        <span class="comment">//     e_.Standardizing();</span></div><div class="line"><a name="l01988"></a><span class="lineno"> 1988</span>&#160;        <span class="comment">//     e_.exponent.Add(man*TTMATH_BITS_PER_UINT)</span></div><div class="line"><a name="l01989"></a><span class="lineno"> 1989</span>&#160;        <span class="comment">//     (we must add &#39;man*TTMATH_BITS_PER_UINT&#39; because we&#39;ve taken it from the mantissa)</span></div><div class="line"><a name="l01990"></a><span class="lineno"> 1990</span>&#160;        Big&lt;exp,man&gt; e_(x);</div><div class="line"><a name="l01991"></a><span class="lineno"> 1991</span>&#160;        e_.mantissa.SetZero();</div><div class="line"><a name="l01992"></a><span class="lineno"> 1992</span>&#160;        e_.mantissa.table[man-1] = <a class="code" href="ttmathtypes_8h.html#a0ccaf279c13b1d747ef8c4690d84b5dd">TTMATH_UINT_HIGHEST_BIT</a>;</div><div class="line"><a name="l01993"></a><span class="lineno"> 1993</span>&#160;        c += e_.exponent.Add(1);</div><div class="line"><a name="l01994"></a><span class="lineno"> 1994</span>&#160;        e_.Abs();</div><div class="line"><a name="l01995"></a><span class="lineno"> 1995</span>&#160;</div><div class="line"><a name="l01996"></a><span class="lineno"> 1996</span>&#160;        <span class="comment">/*</span></div><div class="line"><a name="l01997"></a><span class="lineno"> 1997</span>&#160;<span class="comment">            now we&#39;ve got:</span></div><div class="line"><a name="l01998"></a><span class="lineno"> 1998</span>&#160;<span class="comment">            m - the value of the mantissa in range (-1,1)</span></div><div class="line"><a name="l01999"></a><span class="lineno"> 1999</span>&#160;<span class="comment">            e_ - 2^exponent</span></div><div class="line"><a name="l02000"></a><span class="lineno"> 2000</span>&#160;<span class="comment"></span></div><div class="line"><a name="l02001"></a><span class="lineno"> 2001</span>&#160;<span class="comment">            e_ can be as:</span></div><div class="line"><a name="l02002"></a><span class="lineno"> 2002</span>&#160;<span class="comment">            ...2^-2, 2^-1, 2^0, 2^1, 2^2 ...</span></div><div class="line"><a name="l02003"></a><span class="lineno"> 2003</span>&#160;<span class="comment">            ...1/4 , 1/2 , 1  , 2  , 4   ...</span></div><div class="line"><a name="l02004"></a><span class="lineno"> 2004</span>&#160;<span class="comment"></span></div><div class="line"><a name="l02005"></a><span class="lineno"> 2005</span>&#160;<span class="comment">            above one e_ is integer</span></div><div class="line"><a name="l02006"></a><span class="lineno"> 2006</span>&#160;<span class="comment"></span></div><div class="line"><a name="l02007"></a><span class="lineno"> 2007</span>&#160;<span class="comment">            if e_ is greater than 1 we calculate the exponent as:</span></div><div class="line"><a name="l02008"></a><span class="lineno"> 2008</span>&#160;<span class="comment">                e^(m * e_) = ExpSurrounding0(m) ^ e_</span></div><div class="line"><a name="l02009"></a><span class="lineno"> 2009</span>&#160;<span class="comment">            and if e_ is smaller or equal one we calculate the exponent in this way:</span></div><div class="line"><a name="l02010"></a><span class="lineno"> 2010</span>&#160;<span class="comment">                e^(m * e_) = ExpSurrounding0(m* e_)</span></div><div class="line"><a name="l02011"></a><span class="lineno"> 2011</span>&#160;<span class="comment">            because if e_ is smaller or equal 1 then the product of m*e_ is smaller or equal m</span></div><div class="line"><a name="l02012"></a><span class="lineno"> 2012</span>&#160;<span class="comment">        */</span></div><div class="line"><a name="l02013"></a><span class="lineno"> 2013</span>&#160;</div><div class="line"><a name="l02014"></a><span class="lineno"> 2014</span>&#160;        <span class="keywordflow">if</span>( e_ &lt;= 1 )</div><div class="line"><a name="l02015"></a><span class="lineno"> 2015</span>&#160;        {</div><div class="line"><a name="l02016"></a><span class="lineno"> 2016</span>&#160;            m.Mul(e_);</div><div class="line"><a name="l02017"></a><span class="lineno"> 2017</span>&#160;            ExpSurrounding0(m);</div><div class="line"><a name="l02018"></a><span class="lineno"> 2018</span>&#160;        }</div><div class="line"><a name="l02019"></a><span class="lineno"> 2019</span>&#160;        <span class="keywordflow">else</span></div><div class="line"><a name="l02020"></a><span class="lineno"> 2020</span>&#160;        {</div><div class="line"><a name="l02021"></a><span class="lineno"> 2021</span>&#160;            ExpSurrounding0(m);</div><div class="line"><a name="l02022"></a><span class="lineno"> 2022</span>&#160;            c += <a class="code" href="classttmath_1_1_big.html#adddcbcf842625d2c59bd072cc8931d6f">PowUInt</a>(e_);</div><div class="line"><a name="l02023"></a><span class="lineno"> 2023</span>&#160;        }</div><div class="line"><a name="l02024"></a><span class="lineno"> 2024</span>&#160;    </div><div class="line"><a name="l02025"></a><span class="lineno"> 2025</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="classttmath_1_1_big.html#a0681595612114e8ab1dc9c8f3e8590e7">CheckCarry</a>(c);</div><div class="line"><a name="l02026"></a><span class="lineno"> 2026</span>&#160;    }</div><div class="ttc" id="classttmath_1_1_big_html_a0681595612114e8ab1dc9c8f3e8590e7"><div class="ttname"><a href="classttmath_1_1_big.html#a0681595612114e8ab1dc9c8f3e8590e7">ttmath::Big::CheckCarry</a></div><div class="ttdeci">uint CheckCarry(uint c)</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l00121">ttmathbig.h:121</a></div></div>
<div class="ttc" id="classttmath_1_1_big_html_a5243a9f27365aa90ef3504fd9e52e476"><div class="ttname"><a href="classttmath_1_1_big.html#a5243a9f27365aa90ef3504fd9e52e476">ttmath::Big::SetOne</a></div><div class="ttdeci">void SetOne()</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l00271">ttmathbig.h:271</a></div></div>
<div class="ttc" id="ttmathtypes_8h_html_a0ccaf279c13b1d747ef8c4690d84b5dd"><div class="ttname"><a href="ttmathtypes_8h.html#a0ccaf279c13b1d747ef8c4690d84b5dd">TTMATH_UINT_HIGHEST_BIT</a></div><div class="ttdeci">#define TTMATH_UINT_HIGHEST_BIT</div><div class="ttdef"><b>Definition:</b> <a href="ttmathtypes_8h_source.html#l00258">ttmathtypes.h:258</a></div></div>
<div class="ttc" id="classttmath_1_1_big_html_adddcbcf842625d2c59bd072cc8931d6f"><div class="ttname"><a href="classttmath_1_1_big.html#adddcbcf842625d2c59bd072cc8931d6f">ttmath::Big::PowUInt</a></div><div class="ttdeci">uint PowUInt(Big&lt; exp, man &gt; pow)</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l01675">ttmathbig.h:1675</a></div></div>
<div class="ttc" id="ttmathtypes_8h_html_aef936ab7a0d7f0c34a9a794b3072cf6a"><div class="ttname"><a href="ttmathtypes_8h.html#aef936ab7a0d7f0c34a9a794b3072cf6a">TTMATH_BITS_PER_UINT</a></div><div class="ttdeci">#define TTMATH_BITS_PER_UINT</div><div class="ttdef"><b>Definition:</b> <a href="ttmathtypes_8h_source.html#l00253">ttmathtypes.h:253</a></div></div>
<div class="ttc" id="namespacettmath_html_a4b0a5dcba29a2c7a0abc8b4403a25ac4"><div class="ttname"><a href="namespacettmath.html#a4b0a5dcba29a2c7a0abc8b4403a25ac4">ttmath::sint</a></div><div class="ttdeci">int64_t sint</div><div class="ttdef"><b>Definition:</b> <a href="ttmathtypes_8h_source.html#l00243">ttmathtypes.h:243</a></div></div>
<div class="ttc" id="namespacettmath_html_a5c1fccc9761aaa3d2b6dd32c224f5dac"><div class="ttname"><a href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">ttmath::uint</a></div><div class="ttdeci">uint64_t uint</div><div class="ttdef"><b>Definition:</b> <a href="ttmathtypes_8h_source.html#l00238">ttmathtypes.h:238</a></div></div>
</div><!-- fragment -->
<p class="reference">References <a class="el" href="ttmathbig_8h_source.html#l00682">ttmath::Big&lt; exp, man &gt;::Abs()</a>, <a class="el" href="ttmathint_8h_source.html#l00220">ttmath::Int&lt; value_size &gt;::Add()</a>, <a class="el" href="ttmathbig_8h_source.html#l00121">ttmath::Big&lt; exp, man &gt;::CheckCarry()</a>, <a class="el" href="ttmathbig_8h_source.html#l00667">ttmath::Big&lt; exp, man &gt;::IsNan()</a>, <a class="el" href="ttmathbig_8h_source.html#l00648">ttmath::Big&lt; exp, man &gt;::IsZero()</a>, <a class="el" href="ttmathbig_8h_source.html#l01373">ttmath::Big&lt; exp, man &gt;::Mul()</a>, <a class="el" href="ttmathbig_8h_source.html#l01675">ttmath::Big&lt; exp, man &gt;::PowUInt()</a>, <a class="el" href="ttmathbig_8h_source.html#l00271">ttmath::Big&lt; exp, man &gt;::SetOne()</a>, <a class="el" href="ttmathuint_8h_source.html#l00188">ttmath::UInt&lt; value_size &gt;::SetZero()</a>, <a class="el" href="ttmathuint_8h_source.html#l00081">ttmath::UInt&lt; value_size &gt;::table</a>, <a class="el" href="ttmathtypes_8h_source.html#l00253">TTMATH_BITS_PER_UINT</a>, and <a class="el" href="ttmathtypes_8h_source.html#l00258">TTMATH_UINT_HIGHEST_BIT</a>.</p>

<p class="reference">Referenced by <a class="el" href="ttmathbig_8h_source.html#l01767">ttmath::Big&lt; exp, man &gt;::PowFrac()</a>, and <a class="el" href="ttmathbig_8h_source.html#l01835">ttmath::Big&lt; exp, man &gt;::Sqrt()</a>.</p>

</div>
</div>
<a id="a961c89a45552dfac6d4a47e6e6d21106"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a961c89a45552dfac6d4a47e6e6d21106">&#9670;&nbsp;</a></span>FromBig()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;uint exp, uint man&gt; </div>
<div class="memtemplate">
template&lt;uint another_exp, uint another_man&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a> <a class="el" href="classttmath_1_1_big.html">ttmath::Big</a>&lt; exp, man &gt;::FromBig </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classttmath_1_1_big.html">Big</a>&lt; another_exp, another_man &gt; &amp;&#160;</td>
          <td class="paramname"><em>another</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>converting methods</p>
<p>converting from another type of a <a class="el" href="classttmath_1_1_big.html" title="Big implements the floating point numbers.">Big</a> object </p>

<p class="definition">Definition at line <a class="el" href="ttmathbig_8h_source.html#l02240">2240</a> of file <a class="el" href="ttmathbig_8h_source.html">ttmathbig.h</a>.</p>
<div class="fragment"><div class="line"><a name="l02241"></a><span class="lineno"> 2241</span>&#160;    {</div><div class="line"><a name="l02242"></a><span class="lineno"> 2242</span>&#160;        info = another.info;</div><div class="line"><a name="l02243"></a><span class="lineno"> 2243</span>&#160;</div><div class="line"><a name="l02244"></a><span class="lineno"> 2244</span>&#160;        <span class="keywordflow">if</span>( <a class="code" href="classttmath_1_1_big.html#a7575e10d9fff2f301a66bb05ab472111">IsNan</a>() )</div><div class="line"><a name="l02245"></a><span class="lineno"> 2245</span>&#160;            <span class="keywordflow">return</span> 1;</div><div class="line"><a name="l02246"></a><span class="lineno"> 2246</span>&#160;</div><div class="line"><a name="l02247"></a><span class="lineno"> 2247</span>&#160;        <span class="keywordflow">if</span>( exponent.<a class="code" href="classttmath_1_1_int.html#a9114adb3f73a64079005a5deaaf08d8f">FromInt</a>(another.exponent) )</div><div class="line"><a name="l02248"></a><span class="lineno"> 2248</span>&#160;        {</div><div class="line"><a name="l02249"></a><span class="lineno"> 2249</span>&#160;            <a class="code" href="classttmath_1_1_big.html#a568b91071e386e75dffb0aebdf1c47ec">SetNan</a>();</div><div class="line"><a name="l02250"></a><span class="lineno"> 2250</span>&#160;            <span class="keywordflow">return</span> 1;</div><div class="line"><a name="l02251"></a><span class="lineno"> 2251</span>&#160;        }</div><div class="line"><a name="l02252"></a><span class="lineno"> 2252</span>&#160;</div><div class="line"><a name="l02253"></a><span class="lineno"> 2253</span>&#160;        <a class="code" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a> man_len_min = (man &lt; another_man)? man : another_man;</div><div class="line"><a name="l02254"></a><span class="lineno"> 2254</span>&#160;        <a class="code" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a> i;</div><div class="line"><a name="l02255"></a><span class="lineno"> 2255</span>&#160;        <a class="code" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a> c = 0;</div><div class="line"><a name="l02256"></a><span class="lineno"> 2256</span>&#160;</div><div class="line"><a name="l02257"></a><span class="lineno"> 2257</span>&#160;        <span class="keywordflow">for</span>( i = 0 ; i&lt;man_len_min ; ++i )</div><div class="line"><a name="l02258"></a><span class="lineno"> 2258</span>&#160;            mantissa.<a class="code" href="classttmath_1_1_u_int.html#a54c67e2e3d1a4d6ea96e828d15c4443a">table</a>[man-1-i] = another.mantissa.table[another_man-1-i];</div><div class="line"><a name="l02259"></a><span class="lineno"> 2259</span>&#160;    </div><div class="line"><a name="l02260"></a><span class="lineno"> 2260</span>&#160;        <span class="keywordflow">for</span>( ; i&lt;man ; ++i )</div><div class="line"><a name="l02261"></a><span class="lineno"> 2261</span>&#160;            mantissa.<a class="code" href="classttmath_1_1_u_int.html#a54c67e2e3d1a4d6ea96e828d15c4443a">table</a>[man-1-i] = 0;</div><div class="line"><a name="l02262"></a><span class="lineno"> 2262</span>&#160;</div><div class="line"><a name="l02263"></a><span class="lineno"> 2263</span>&#160;</div><div class="line"><a name="l02264"></a><span class="lineno"> 2264</span>&#160;        <span class="comment">// MS Visual Express 2005 reports a warning (in the lines with &#39;uint man_diff = ...&#39;):</span></div><div class="line"><a name="l02265"></a><span class="lineno"> 2265</span>&#160;        <span class="comment">// warning C4307: &#39;*&#39; : integral constant overflow</span></div><div class="line"><a name="l02266"></a><span class="lineno"> 2266</span>&#160;        <span class="comment">// but we&#39;re using &#39;if( man &gt; another_man )&#39; and &#39;if( man &lt; another_man )&#39; and there&#39;ll be no such situation here</span></div><div class="line"><a name="l02267"></a><span class="lineno"> 2267</span>&#160;<span class="preprocessor">        #ifdef _MSC_VER</span></div><div class="line"><a name="l02268"></a><span class="lineno"> 2268</span>&#160;<span class="preprocessor">        #pragma warning( disable: 4307 )</span></div><div class="line"><a name="l02269"></a><span class="lineno"> 2269</span>&#160;<span class="preprocessor">        #endif</span></div><div class="line"><a name="l02270"></a><span class="lineno"> 2270</span>&#160;</div><div class="line"><a name="l02271"></a><span class="lineno"> 2271</span>&#160;        <span class="keywordflow">if</span>( man &gt; another_man )</div><div class="line"><a name="l02272"></a><span class="lineno"> 2272</span>&#160;        {</div><div class="line"><a name="l02273"></a><span class="lineno"> 2273</span>&#160;            <a class="code" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a> man_diff = (man - another_man) * <a class="code" href="ttmathtypes_8h.html#aef936ab7a0d7f0c34a9a794b3072cf6a">TTMATH_BITS_PER_UINT</a>;</div><div class="line"><a name="l02274"></a><span class="lineno"> 2274</span>&#160;            c += exponent.<a class="code" href="classttmath_1_1_int.html#a9d5f89116e1ea6c624978e7905823a80">SubInt</a>(man_diff, 0);</div><div class="line"><a name="l02275"></a><span class="lineno"> 2275</span>&#160;        }</div><div class="line"><a name="l02276"></a><span class="lineno"> 2276</span>&#160;        <span class="keywordflow">else</span></div><div class="line"><a name="l02277"></a><span class="lineno"> 2277</span>&#160;        <span class="keywordflow">if</span>( man &lt; another_man )</div><div class="line"><a name="l02278"></a><span class="lineno"> 2278</span>&#160;        {</div><div class="line"><a name="l02279"></a><span class="lineno"> 2279</span>&#160;            <a class="code" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a> man_diff = (another_man - man) * <a class="code" href="ttmathtypes_8h.html#aef936ab7a0d7f0c34a9a794b3072cf6a">TTMATH_BITS_PER_UINT</a>;</div><div class="line"><a name="l02280"></a><span class="lineno"> 2280</span>&#160;            c += exponent.<a class="code" href="classttmath_1_1_int.html#a1988d656495b09a5d357cb42f080baf5">AddInt</a>(man_diff, 0);</div><div class="line"><a name="l02281"></a><span class="lineno"> 2281</span>&#160;        }</div><div class="line"><a name="l02282"></a><span class="lineno"> 2282</span>&#160;        </div><div class="line"><a name="l02283"></a><span class="lineno"> 2283</span>&#160;<span class="preprocessor">        #ifdef _MSC_VER</span></div><div class="line"><a name="l02284"></a><span class="lineno"> 2284</span>&#160;<span class="preprocessor">        #pragma warning( default: 4307 )</span></div><div class="line"><a name="l02285"></a><span class="lineno"> 2285</span>&#160;<span class="preprocessor">        #endif</span></div><div class="line"><a name="l02286"></a><span class="lineno"> 2286</span>&#160;</div><div class="line"><a name="l02287"></a><span class="lineno"> 2287</span>&#160;        <span class="comment">// mantissa doesn&#39;t have to be standardized (either the highest bit is set or all bits are equal zero)</span></div><div class="line"><a name="l02288"></a><span class="lineno"> 2288</span>&#160;        CorrectZero();</div><div class="line"><a name="l02289"></a><span class="lineno"> 2289</span>&#160;</div><div class="line"><a name="l02290"></a><span class="lineno"> 2290</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="classttmath_1_1_big.html#a0681595612114e8ab1dc9c8f3e8590e7">CheckCarry</a>(c);</div><div class="line"><a name="l02291"></a><span class="lineno"> 2291</span>&#160;    }</div><div class="ttc" id="classttmath_1_1_big_html_a0681595612114e8ab1dc9c8f3e8590e7"><div class="ttname"><a href="classttmath_1_1_big.html#a0681595612114e8ab1dc9c8f3e8590e7">ttmath::Big::CheckCarry</a></div><div class="ttdeci">uint CheckCarry(uint c)</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l00121">ttmathbig.h:121</a></div></div>
<div class="ttc" id="classttmath_1_1_u_int_html_a54c67e2e3d1a4d6ea96e828d15c4443a"><div class="ttname"><a href="classttmath_1_1_u_int.html#a54c67e2e3d1a4d6ea96e828d15c4443a">ttmath::UInt::table</a></div><div class="ttdeci">uint table[value_size]</div><div class="ttdef"><b>Definition:</b> <a href="ttmathuint_8h_source.html#l00081">ttmathuint.h:81</a></div></div>
<div class="ttc" id="classttmath_1_1_int_html_a9114adb3f73a64079005a5deaaf08d8f"><div class="ttname"><a href="classttmath_1_1_int.html#a9114adb3f73a64079005a5deaaf08d8f">ttmath::Int::FromInt</a></div><div class="ttdeci">uint FromInt(const Int&lt; argument_size &gt; &amp;p)</div><div class="ttdef"><b>Definition:</b> <a href="ttmathint_8h_source.html#l00697">ttmathint.h:697</a></div></div>
<div class="ttc" id="classttmath_1_1_big_html_a568b91071e386e75dffb0aebdf1c47ec"><div class="ttname"><a href="classttmath_1_1_big.html#a568b91071e386e75dffb0aebdf1c47ec">ttmath::Big::SetNan</a></div><div class="ttdeci">void SetNan()</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l00296">ttmathbig.h:296</a></div></div>
<div class="ttc" id="classttmath_1_1_big_html_a7575e10d9fff2f301a66bb05ab472111"><div class="ttname"><a href="classttmath_1_1_big.html#a7575e10d9fff2f301a66bb05ab472111">ttmath::Big::IsNan</a></div><div class="ttdeci">bool IsNan() const</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l00667">ttmathbig.h:667</a></div></div>
<div class="ttc" id="classttmath_1_1_int_html_a1988d656495b09a5d357cb42f080baf5"><div class="ttname"><a href="classttmath_1_1_int.html#a1988d656495b09a5d357cb42f080baf5">ttmath::Int::AddInt</a></div><div class="ttdeci">uint AddInt(uint value, uint index=0)</div><div class="ttdef"><b>Definition:</b> <a href="ttmathint_8h_source.html#l00237">ttmathint.h:237</a></div></div>
<div class="ttc" id="ttmathtypes_8h_html_aef936ab7a0d7f0c34a9a794b3072cf6a"><div class="ttname"><a href="ttmathtypes_8h.html#aef936ab7a0d7f0c34a9a794b3072cf6a">TTMATH_BITS_PER_UINT</a></div><div class="ttdeci">#define TTMATH_BITS_PER_UINT</div><div class="ttdef"><b>Definition:</b> <a href="ttmathtypes_8h_source.html#l00253">ttmathtypes.h:253</a></div></div>
<div class="ttc" id="classttmath_1_1_int_html_a9d5f89116e1ea6c624978e7905823a80"><div class="ttname"><a href="classttmath_1_1_int.html#a9d5f89116e1ea6c624978e7905823a80">ttmath::Int::SubInt</a></div><div class="ttdeci">uint SubInt(uint value, uint index=0)</div><div class="ttdef"><b>Definition:</b> <a href="ttmathint_8h_source.html#l00314">ttmathint.h:314</a></div></div>
<div class="ttc" id="namespacettmath_html_a5c1fccc9761aaa3d2b6dd32c224f5dac"><div class="ttname"><a href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">ttmath::uint</a></div><div class="ttdeci">uint64_t uint</div><div class="ttdef"><b>Definition:</b> <a href="ttmathtypes_8h_source.html#l00238">ttmathtypes.h:238</a></div></div>
</div><!-- fragment -->
<p class="reference">References <a class="el" href="ttmathint_8h_source.html#l00237">ttmath::Int&lt; value_size &gt;::AddInt()</a>, <a class="el" href="ttmathbig_8h_source.html#l00121">ttmath::Big&lt; exp, man &gt;::CheckCarry()</a>, <a class="el" href="ttmathint_8h_source.html#l00697">ttmath::Int&lt; value_size &gt;::FromInt()</a>, <a class="el" href="ttmathbig_8h_source.html#l00667">ttmath::Big&lt; exp, man &gt;::IsNan()</a>, <a class="el" href="ttmathbig_8h_source.html#l00296">ttmath::Big&lt; exp, man &gt;::SetNan()</a>, <a class="el" href="ttmathint_8h_source.html#l00314">ttmath::Int&lt; value_size &gt;::SubInt()</a>, <a class="el" href="ttmathuint_8h_source.html#l00081">ttmath::UInt&lt; value_size &gt;::table</a>, and <a class="el" href="ttmathtypes_8h_source.html#l00253">TTMATH_BITS_PER_UINT</a>.</p>

<p class="reference">Referenced by <a class="el" href="ttmathbig_8h_source.html#l03642">ttmath::Big&lt; exp, man &gt;::Big()</a>, and <a class="el" href="ttmathbig_8h_source.html#l03630">ttmath::Big&lt; exp, man &gt;::operator=()</a>.</p>

</div>
</div>
<a id="afd218703bd13ea24e9fe09398d826247"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afd218703bd13ea24e9fe09398d826247">&#9670;&nbsp;</a></span>FromDouble()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;uint exp, uint man&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a> <a class="el" href="classttmath_1_1_big.html">ttmath::Big</a>&lt; exp, man &gt;::FromDouble </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>value</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>this method converts from standard double into this class</p>
<p>standard double means IEEE-754 floating point value with 64 bits it is as follows (from <a href="http://www.psc.edu/general/software/packages/ieee/ieee.html">http://www.psc.edu/general/software/packages/ieee/ieee.html</a>):</p>
<p>The IEEE double precision floating point standard representation requires a 64 bit word, which may be represented as numbered from 0 to 63, left to right. The first bit is the sign bit, S, the next eleven bits are the exponent bits, 'E', and the final 52 bits are the fraction 'F': </p><pre class="fragment">S EEEEEEEEEEE FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
0 1        11 12                                                63
</pre><p>The value V represented by the word may be determined as follows:</p>
<ul>
<li>If E=2047 and F is nonzero, then V=NaN ("Not a number")</li>
<li>If E=2047 and F is zero and S is 1, then V=-Infinity</li>
<li>If E=2047 and F is zero and S is 0, then V=Infinity</li>
<li>If 0&lt;E&lt;2047 then V=(-1)**S * 2 ** (E-1023) * (1.F) where "1.F" is intended to represent the binary number created by prefixing F with an implicit leading 1 and a binary point.</li>
<li>If E=0 and F is nonzero, then V=(-1)**S * 2 ** (-1022) * (0.F) These are "unnormalized" values.</li>
<li>If E=0 and F is zero and S is 1, then V=-0</li>
<li>If E=0 and F is zero and S is 0, then V=0 </li>
</ul>

<p class="definition">Definition at line <a class="el" href="ttmathbig_8h_source.html#l02736">2736</a> of file <a class="el" href="ttmathbig_8h_source.html">ttmathbig.h</a>.</p>
<div class="fragment"><div class="line"><a name="l02737"></a><span class="lineno"> 2737</span>&#160;    {</div><div class="line"><a name="l02738"></a><span class="lineno"> 2738</span>&#160;        <span class="comment">// I am not sure what will be on a plaltform which has </span></div><div class="line"><a name="l02739"></a><span class="lineno"> 2739</span>&#160;        <span class="comment">// a different endianness... but we use this library only</span></div><div class="line"><a name="l02740"></a><span class="lineno"> 2740</span>&#160;        <span class="comment">// on x86 and amd (intel) 64 bits (as there&#39;s a lot of assembler code)</span></div><div class="line"><a name="l02741"></a><span class="lineno"> 2741</span>&#160;        <span class="keyword">union </span></div><div class="line"><a name="l02742"></a><span class="lineno"> 2742</span>&#160;        {</div><div class="line"><a name="l02743"></a><span class="lineno"> 2743</span>&#160;            <span class="keywordtype">double</span> d;</div><div class="line"><a name="l02744"></a><span class="lineno"> 2744</span>&#160;            <a class="code" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a> u; <span class="comment">// one 64bit word</span></div><div class="line"><a name="l02745"></a><span class="lineno"> 2745</span>&#160;        } temp;</div><div class="line"><a name="l02746"></a><span class="lineno"> 2746</span>&#160;</div><div class="line"><a name="l02747"></a><span class="lineno"> 2747</span>&#160;        temp.d = value;</div><div class="line"><a name="l02748"></a><span class="lineno"> 2748</span>&#160;                          </div><div class="line"><a name="l02749"></a><span class="lineno"> 2749</span>&#160;        <a class="code" href="namespacettmath.html#a4b0a5dcba29a2c7a0abc8b4403a25ac4">sint</a> e = (temp.u &amp; 0x7FF0000000000000ul) &gt;&gt; 52;</div><div class="line"><a name="l02750"></a><span class="lineno"> 2750</span>&#160;        <a class="code" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a> m = (temp.u &amp;    0xFFFFFFFFFFFFFul) &lt;&lt; 11;</div><div class="line"><a name="l02751"></a><span class="lineno"> 2751</span>&#160;        </div><div class="line"><a name="l02752"></a><span class="lineno"> 2752</span>&#160;        <span class="keywordflow">if</span>( e == 2047 )</div><div class="line"><a name="l02753"></a><span class="lineno"> 2753</span>&#160;        {</div><div class="line"><a name="l02754"></a><span class="lineno"> 2754</span>&#160;            <span class="comment">// If E=2047 and F is nonzero, then V=NaN (&quot;Not a number&quot;)</span></div><div class="line"><a name="l02755"></a><span class="lineno"> 2755</span>&#160;            <span class="comment">// If E=2047 and F is zero and S is 1, then V=-Infinity</span></div><div class="line"><a name="l02756"></a><span class="lineno"> 2756</span>&#160;            <span class="comment">// If E=2047 and F is zero and S is 0, then V=Infinity</span></div><div class="line"><a name="l02757"></a><span class="lineno"> 2757</span>&#160;</div><div class="line"><a name="l02758"></a><span class="lineno"> 2758</span>&#160;            <span class="comment">// we do not support -Infinity and +Infinity</span></div><div class="line"><a name="l02759"></a><span class="lineno"> 2759</span>&#160;            <span class="comment">// we assume that there is always NaN </span></div><div class="line"><a name="l02760"></a><span class="lineno"> 2760</span>&#160;</div><div class="line"><a name="l02761"></a><span class="lineno"> 2761</span>&#160;            <a class="code" href="classttmath_1_1_big.html#a568b91071e386e75dffb0aebdf1c47ec">SetNan</a>();</div><div class="line"><a name="l02762"></a><span class="lineno"> 2762</span>&#160;        }</div><div class="line"><a name="l02763"></a><span class="lineno"> 2763</span>&#160;        <span class="keywordflow">else</span></div><div class="line"><a name="l02764"></a><span class="lineno"> 2764</span>&#160;        <span class="keywordflow">if</span>( e &gt; 0 )</div><div class="line"><a name="l02765"></a><span class="lineno"> 2765</span>&#160;        {</div><div class="line"><a name="l02766"></a><span class="lineno"> 2766</span>&#160;            <span class="comment">// If 0&lt;E&lt;2047 then</span></div><div class="line"><a name="l02767"></a><span class="lineno"> 2767</span>&#160;            <span class="comment">// V=(-1)**S * 2 ** (E-1023) * (1.F)</span></div><div class="line"><a name="l02768"></a><span class="lineno"> 2768</span>&#160;            <span class="comment">// where &quot;1.F&quot; is intended to represent the binary number</span></div><div class="line"><a name="l02769"></a><span class="lineno"> 2769</span>&#160;            <span class="comment">// created by prefixing F with an implicit leading 1 and a binary point.</span></div><div class="line"><a name="l02770"></a><span class="lineno"> 2770</span>&#160;            </div><div class="line"><a name="l02771"></a><span class="lineno"> 2771</span>&#160;            FromDouble_SetExpAndMan((temp.u &amp; 0x8000000000000000ul) != 0,</div><div class="line"><a name="l02772"></a><span class="lineno"> 2772</span>&#160;                                    e - 1023 - man*<a class="code" href="ttmathtypes_8h.html#aef936ab7a0d7f0c34a9a794b3072cf6a">TTMATH_BITS_PER_UINT</a> + 1,</div><div class="line"><a name="l02773"></a><span class="lineno"> 2773</span>&#160;                                    0x8000000000000000ul, m);</div><div class="line"><a name="l02774"></a><span class="lineno"> 2774</span>&#160;</div><div class="line"><a name="l02775"></a><span class="lineno"> 2775</span>&#160;            <span class="comment">// we do not have to call Standardizing() here</span></div><div class="line"><a name="l02776"></a><span class="lineno"> 2776</span>&#160;            <span class="comment">// because the mantissa will have the highest bit set</span></div><div class="line"><a name="l02777"></a><span class="lineno"> 2777</span>&#160;        }</div><div class="line"><a name="l02778"></a><span class="lineno"> 2778</span>&#160;        <span class="keywordflow">else</span></div><div class="line"><a name="l02779"></a><span class="lineno"> 2779</span>&#160;        {</div><div class="line"><a name="l02780"></a><span class="lineno"> 2780</span>&#160;            <span class="comment">// e == 0</span></div><div class="line"><a name="l02781"></a><span class="lineno"> 2781</span>&#160;</div><div class="line"><a name="l02782"></a><span class="lineno"> 2782</span>&#160;            <span class="keywordflow">if</span>( m != 0 )</div><div class="line"><a name="l02783"></a><span class="lineno"> 2783</span>&#160;            {</div><div class="line"><a name="l02784"></a><span class="lineno"> 2784</span>&#160;                <span class="comment">// If E=0 and F is nonzero,</span></div><div class="line"><a name="l02785"></a><span class="lineno"> 2785</span>&#160;                <span class="comment">// then V=(-1)**S * 2 ** (-1022) * (0.F)</span></div><div class="line"><a name="l02786"></a><span class="lineno"> 2786</span>&#160;                <span class="comment">// These are &quot;unnormalized&quot; values.</span></div><div class="line"><a name="l02787"></a><span class="lineno"> 2787</span>&#160;</div><div class="line"><a name="l02788"></a><span class="lineno"> 2788</span>&#160;                FromDouble_SetExpAndMan(<span class="keywordtype">bool</span>(temp.u &amp; 0x8000000000000000ul),</div><div class="line"><a name="l02789"></a><span class="lineno"> 2789</span>&#160;                                        e - 1022 - man*<a class="code" href="ttmathtypes_8h.html#aef936ab7a0d7f0c34a9a794b3072cf6a">TTMATH_BITS_PER_UINT</a> + 1, 0, m);</div><div class="line"><a name="l02790"></a><span class="lineno"> 2790</span>&#160;                <a class="code" href="classttmath_1_1_big.html#aedc4abe8e1d984289b41830e9a1d67fb">Standardizing</a>();</div><div class="line"><a name="l02791"></a><span class="lineno"> 2791</span>&#160;            }</div><div class="line"><a name="l02792"></a><span class="lineno"> 2792</span>&#160;            <span class="keywordflow">else</span></div><div class="line"><a name="l02793"></a><span class="lineno"> 2793</span>&#160;            {</div><div class="line"><a name="l02794"></a><span class="lineno"> 2794</span>&#160;                <span class="comment">// If E=0 and F is zero and S is 1, then V=-0</span></div><div class="line"><a name="l02795"></a><span class="lineno"> 2795</span>&#160;                <span class="comment">// If E=0 and F is zero and S is 0, then V=0 </span></div><div class="line"><a name="l02796"></a><span class="lineno"> 2796</span>&#160;</div><div class="line"><a name="l02797"></a><span class="lineno"> 2797</span>&#160;                <span class="comment">// we do not support -0 or 0, only is one 0</span></div><div class="line"><a name="l02798"></a><span class="lineno"> 2798</span>&#160;                <a class="code" href="classttmath_1_1_big.html#a1b5980e7d66c1a6bcfe55d85eccb1821">SetZero</a>();</div><div class="line"><a name="l02799"></a><span class="lineno"> 2799</span>&#160;            }</div><div class="line"><a name="l02800"></a><span class="lineno"> 2800</span>&#160;        }</div><div class="line"><a name="l02801"></a><span class="lineno"> 2801</span>&#160;</div><div class="line"><a name="l02802"></a><span class="lineno"> 2802</span>&#160;    <span class="keywordflow">return</span> 0; <span class="comment">// never be a carry</span></div><div class="line"><a name="l02803"></a><span class="lineno"> 2803</span>&#160;    }</div><div class="ttc" id="classttmath_1_1_big_html_a568b91071e386e75dffb0aebdf1c47ec"><div class="ttname"><a href="classttmath_1_1_big.html#a568b91071e386e75dffb0aebdf1c47ec">ttmath::Big::SetNan</a></div><div class="ttdeci">void SetNan()</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l00296">ttmathbig.h:296</a></div></div>
<div class="ttc" id="ttmathtypes_8h_html_aef936ab7a0d7f0c34a9a794b3072cf6a"><div class="ttname"><a href="ttmathtypes_8h.html#aef936ab7a0d7f0c34a9a794b3072cf6a">TTMATH_BITS_PER_UINT</a></div><div class="ttdeci">#define TTMATH_BITS_PER_UINT</div><div class="ttdef"><b>Definition:</b> <a href="ttmathtypes_8h_source.html#l00253">ttmathtypes.h:253</a></div></div>
<div class="ttc" id="classttmath_1_1_big_html_aedc4abe8e1d984289b41830e9a1d67fb"><div class="ttname"><a href="classttmath_1_1_big.html#aedc4abe8e1d984289b41830e9a1d67fb">ttmath::Big::Standardizing</a></div><div class="ttdeci">uint Standardizing()</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l00173">ttmathbig.h:173</a></div></div>
<div class="ttc" id="namespacettmath_html_a4b0a5dcba29a2c7a0abc8b4403a25ac4"><div class="ttname"><a href="namespacettmath.html#a4b0a5dcba29a2c7a0abc8b4403a25ac4">ttmath::sint</a></div><div class="ttdeci">int64_t sint</div><div class="ttdef"><b>Definition:</b> <a href="ttmathtypes_8h_source.html#l00243">ttmathtypes.h:243</a></div></div>
<div class="ttc" id="namespacettmath_html_a5c1fccc9761aaa3d2b6dd32c224f5dac"><div class="ttname"><a href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">ttmath::uint</a></div><div class="ttdeci">uint64_t uint</div><div class="ttdef"><b>Definition:</b> <a href="ttmathtypes_8h_source.html#l00238">ttmathtypes.h:238</a></div></div>
<div class="ttc" id="classttmath_1_1_big_html_a1b5980e7d66c1a6bcfe55d85eccb1821"><div class="ttname"><a href="classttmath_1_1_big.html#a1b5980e7d66c1a6bcfe55d85eccb1821">ttmath::Big::SetZero</a></div><div class="ttdeci">void SetZero()</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l00256">ttmathbig.h:256</a></div></div>
</div><!-- fragment -->
<p class="reference">References <a class="el" href="ttmathbig_8h_source.html#l00296">ttmath::Big&lt; exp, man &gt;::SetNan()</a>, <a class="el" href="ttmathbig_8h_source.html#l00256">ttmath::Big&lt; exp, man &gt;::SetZero()</a>, <a class="el" href="ttmathbig_8h_source.html#l00173">ttmath::Big&lt; exp, man &gt;::Standardizing()</a>, and <a class="el" href="ttmathtypes_8h_source.html#l00253">TTMATH_BITS_PER_UINT</a>.</p>

<p class="reference">Referenced by <a class="el" href="ttmathbig_8h_source.html#l03180">ttmath::Big&lt; exp, man &gt;::Big()</a>, <a class="el" href="ttmathbig_8h_source.html#l02833">ttmath::Big&lt; exp, man &gt;::FromFloat()</a>, and <a class="el" href="ttmathbig_8h_source.html#l03152">ttmath::Big&lt; exp, man &gt;::operator=()</a>.</p>

</div>
</div>
<a id="a448d79907dbc27e897d0f6c55ecde0b4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a448d79907dbc27e897d0f6c55ecde0b4">&#9670;&nbsp;</a></span>FromFloat()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;uint exp, uint man&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a> <a class="el" href="classttmath_1_1_big.html">ttmath::Big</a>&lt; exp, man &gt;::FromFloat </td>
          <td>(</td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>value</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>this method converts from float to this class </p>

<p class="definition">Definition at line <a class="el" href="ttmathbig_8h_source.html#l02833">2833</a> of file <a class="el" href="ttmathbig_8h_source.html">ttmathbig.h</a>.</p>
<div class="fragment"><div class="line"><a name="l02834"></a><span class="lineno"> 2834</span>&#160;    {</div><div class="line"><a name="l02835"></a><span class="lineno"> 2835</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="classttmath_1_1_big.html#afd218703bd13ea24e9fe09398d826247">FromDouble</a>(<span class="keywordtype">double</span>(value));</div><div class="line"><a name="l02836"></a><span class="lineno"> 2836</span>&#160;    }</div><div class="ttc" id="classttmath_1_1_big_html_afd218703bd13ea24e9fe09398d826247"><div class="ttname"><a href="classttmath_1_1_big.html#afd218703bd13ea24e9fe09398d826247">ttmath::Big::FromDouble</a></div><div class="ttdeci">uint FromDouble(double value)</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l02736">ttmathbig.h:2736</a></div></div>
</div><!-- fragment -->
<p class="reference">References <a class="el" href="ttmathbig_8h_source.html#l02736">ttmath::Big&lt; exp, man &gt;::FromDouble()</a>.</p>

<p class="reference">Referenced by <a class="el" href="ttmathbig_8h_source.html#l03189">ttmath::Big&lt; exp, man &gt;::Big()</a>, and <a class="el" href="ttmathbig_8h_source.html#l03141">ttmath::Big&lt; exp, man &gt;::operator=()</a>.</p>

</div>
</div>
<a id="a56a6fff11059c5acd4e20cbb01f321c3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a56a6fff11059c5acd4e20cbb01f321c3">&#9670;&nbsp;</a></span>FromInt() <span class="overload">[1/4]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;uint exp, uint man&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a> <a class="el" href="classttmath_1_1_big.html">ttmath::Big</a>&lt; exp, man &gt;::FromInt </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a>&#160;</td>
          <td class="paramname"><em>value</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>a method for converting 'uint' to this class </p>

<p class="definition">Definition at line <a class="el" href="ttmathbig_8h_source.html#l02564">2564</a> of file <a class="el" href="ttmathbig_8h_source.html">ttmathbig.h</a>.</p>
<div class="fragment"><div class="line"><a name="l02565"></a><span class="lineno"> 2565</span>&#160;    {</div><div class="line"><a name="l02566"></a><span class="lineno"> 2566</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="classttmath_1_1_big.html#acae9e6888929068aecc5cca01126d3c5">FromUInt</a>(value);</div><div class="line"><a name="l02567"></a><span class="lineno"> 2567</span>&#160;    }</div><div class="ttc" id="classttmath_1_1_big_html_acae9e6888929068aecc5cca01126d3c5"><div class="ttname"><a href="classttmath_1_1_big.html#acae9e6888929068aecc5cca01126d3c5">ttmath::Big::FromUInt</a></div><div class="ttdeci">uint FromUInt(uint value)</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l02538">ttmathbig.h:2538</a></div></div>
</div><!-- fragment -->
<p class="reference">References <a class="el" href="ttmathbig_8h_source.html#l02538">ttmath::Big&lt; exp, man &gt;::FromUInt()</a>.</p>

<p class="reference">Referenced by <a class="el" href="ttmathbig_8h_source.html#l03163">ttmath::Big&lt; exp, man &gt;::Big()</a>, <a class="el" href="ttmathbig_8h_source.html#l02144">ttmath::Big&lt; exp, man &gt;::Ln()</a>, and <a class="el" href="ttmathbig_8h_source.html#l03119">ttmath::Big&lt; exp, man &gt;::operator=()</a>.</p>

</div>
</div>
<a id="a8757d0e23a961f99ce15fa6e844bc526"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8757d0e23a961f99ce15fa6e844bc526">&#9670;&nbsp;</a></span>FromInt() <span class="overload">[2/4]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;uint exp, uint man&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a> <a class="el" href="classttmath_1_1_big.html">ttmath::Big</a>&lt; exp, man &gt;::FromInt </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="namespacettmath.html#a4b0a5dcba29a2c7a0abc8b4403a25ac4">sint</a>&#160;</td>
          <td class="paramname"><em>value</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>a method for converting 'sint' to this class </p>

<p class="definition">Definition at line <a class="el" href="ttmathbig_8h_source.html#l02573">2573</a> of file <a class="el" href="ttmathbig_8h_source.html">ttmathbig.h</a>.</p>
<div class="fragment"><div class="line"><a name="l02574"></a><span class="lineno"> 2574</span>&#160;    {</div><div class="line"><a name="l02575"></a><span class="lineno"> 2575</span>&#160;    <span class="keywordtype">bool</span> is_sign = <span class="keyword">false</span>;</div><div class="line"><a name="l02576"></a><span class="lineno"> 2576</span>&#160;</div><div class="line"><a name="l02577"></a><span class="lineno"> 2577</span>&#160;        <span class="keywordflow">if</span>( value &lt; 0 )</div><div class="line"><a name="l02578"></a><span class="lineno"> 2578</span>&#160;        {</div><div class="line"><a name="l02579"></a><span class="lineno"> 2579</span>&#160;            value   = -value;</div><div class="line"><a name="l02580"></a><span class="lineno"> 2580</span>&#160;            is_sign = <span class="keyword">true</span>;</div><div class="line"><a name="l02581"></a><span class="lineno"> 2581</span>&#160;        }</div><div class="line"><a name="l02582"></a><span class="lineno"> 2582</span>&#160;</div><div class="line"><a name="l02583"></a><span class="lineno"> 2583</span>&#160;        <a class="code" href="classttmath_1_1_big.html#acae9e6888929068aecc5cca01126d3c5">FromUInt</a>(<a class="code" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a>(value));</div><div class="line"><a name="l02584"></a><span class="lineno"> 2584</span>&#160;</div><div class="line"><a name="l02585"></a><span class="lineno"> 2585</span>&#160;        <span class="keywordflow">if</span>( is_sign )</div><div class="line"><a name="l02586"></a><span class="lineno"> 2586</span>&#160;            <a class="code" href="classttmath_1_1_big.html#a3486d67def6959bd98ee590649c4d1c1">SetSign</a>();</div><div class="line"><a name="l02587"></a><span class="lineno"> 2587</span>&#160;</div><div class="line"><a name="l02588"></a><span class="lineno"> 2588</span>&#160;    <span class="keywordflow">return</span> 0;</div><div class="line"><a name="l02589"></a><span class="lineno"> 2589</span>&#160;    }</div><div class="ttc" id="classttmath_1_1_big_html_a3486d67def6959bd98ee590649c4d1c1"><div class="ttname"><a href="classttmath_1_1_big.html#a3486d67def6959bd98ee590649c4d1c1">ttmath::Big::SetSign</a></div><div class="ttdeci">void SetSign()</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l00726">ttmathbig.h:726</a></div></div>
<div class="ttc" id="classttmath_1_1_big_html_acae9e6888929068aecc5cca01126d3c5"><div class="ttname"><a href="classttmath_1_1_big.html#acae9e6888929068aecc5cca01126d3c5">ttmath::Big::FromUInt</a></div><div class="ttdeci">uint FromUInt(uint value)</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l02538">ttmathbig.h:2538</a></div></div>
<div class="ttc" id="namespacettmath_html_a5c1fccc9761aaa3d2b6dd32c224f5dac"><div class="ttname"><a href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">ttmath::uint</a></div><div class="ttdeci">uint64_t uint</div><div class="ttdef"><b>Definition:</b> <a href="ttmathtypes_8h_source.html#l00238">ttmathtypes.h:238</a></div></div>
</div><!-- fragment -->
<p class="reference">References <a class="el" href="ttmathbig_8h_source.html#l02538">ttmath::Big&lt; exp, man &gt;::FromUInt()</a>, and <a class="el" href="ttmathbig_8h_source.html#l00726">ttmath::Big&lt; exp, man &gt;::SetSign()</a>.</p>

</div>
</div>
<a id="a619f1155c5a5919eb2be4effee15c851"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a619f1155c5a5919eb2be4effee15c851">&#9670;&nbsp;</a></span>FromInt() <span class="overload">[3/4]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;uint exp, uint man&gt; </div>
<div class="memtemplate">
template&lt;uint int_size&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a> <a class="el" href="classttmath_1_1_big.html">ttmath::Big</a>&lt; exp, man &gt;::FromInt </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classttmath_1_1_u_int.html">UInt</a>&lt; int_size &gt; &amp;&#160;</td>
          <td class="paramname"><em>value</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>a method for converting from 'UInt&lt;int_size&gt;' to this class </p>

<p class="definition">Definition at line <a class="el" href="ttmathbig_8h_source.html#l03551">3551</a> of file <a class="el" href="ttmathbig_8h_source.html">ttmathbig.h</a>.</p>
<div class="fragment"><div class="line"><a name="l03552"></a><span class="lineno"> 3552</span>&#160;    {</div><div class="line"><a name="l03553"></a><span class="lineno"> 3553</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="classttmath_1_1_big.html#acae9e6888929068aecc5cca01126d3c5">FromUInt</a>(value);</div><div class="line"><a name="l03554"></a><span class="lineno"> 3554</span>&#160;    }</div><div class="ttc" id="classttmath_1_1_big_html_acae9e6888929068aecc5cca01126d3c5"><div class="ttname"><a href="classttmath_1_1_big.html#acae9e6888929068aecc5cca01126d3c5">ttmath::Big::FromUInt</a></div><div class="ttdeci">uint FromUInt(uint value)</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l02538">ttmathbig.h:2538</a></div></div>
</div><!-- fragment -->
<p class="reference">References <a class="el" href="ttmathbig_8h_source.html#l02538">ttmath::Big&lt; exp, man &gt;::FromUInt()</a>.</p>

</div>
</div>
<a id="abd656baf05f508405a599a82faadec49"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abd656baf05f508405a599a82faadec49">&#9670;&nbsp;</a></span>FromInt() <span class="overload">[4/4]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;uint exp, uint man&gt; </div>
<div class="memtemplate">
template&lt;uint int_size&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a> <a class="el" href="classttmath_1_1_big.html">ttmath::Big</a>&lt; exp, man &gt;::FromInt </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classttmath_1_1_int.html">Int</a>&lt; int_size &gt;&#160;</td>
          <td class="paramname"><em>value</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>a method for converting from 'Int&lt;int_size&gt;' to this class </p>

<p class="definition">Definition at line <a class="el" href="ttmathbig_8h_source.html#l03561">3561</a> of file <a class="el" href="ttmathbig_8h_source.html">ttmathbig.h</a>.</p>
<div class="fragment"><div class="line"><a name="l03562"></a><span class="lineno"> 3562</span>&#160;    {</div><div class="line"><a name="l03563"></a><span class="lineno"> 3563</span>&#160;        info = 0;</div><div class="line"><a name="l03564"></a><span class="lineno"> 3564</span>&#160;        <span class="keywordtype">bool</span> is_sign = <span class="keyword">false</span>;</div><div class="line"><a name="l03565"></a><span class="lineno"> 3565</span>&#160;</div><div class="line"><a name="l03566"></a><span class="lineno"> 3566</span>&#160;        <span class="keywordflow">if</span>( value.IsSign() )</div><div class="line"><a name="l03567"></a><span class="lineno"> 3567</span>&#160;        {</div><div class="line"><a name="l03568"></a><span class="lineno"> 3568</span>&#160;            value.ChangeSign();</div><div class="line"><a name="l03569"></a><span class="lineno"> 3569</span>&#160;            is_sign = <span class="keyword">true</span>;</div><div class="line"><a name="l03570"></a><span class="lineno"> 3570</span>&#160;        }</div><div class="line"><a name="l03571"></a><span class="lineno"> 3571</span>&#160;        </div><div class="line"><a name="l03572"></a><span class="lineno"> 3572</span>&#160;        <a class="code" href="namespacettmath.html#a4b0a5dcba29a2c7a0abc8b4403a25ac4">sint</a> compensation = (<a class="code" href="namespacettmath.html#a4b0a5dcba29a2c7a0abc8b4403a25ac4">sint</a>)value.CompensationToLeft();</div><div class="line"><a name="l03573"></a><span class="lineno"> 3573</span>&#160;        FromUIntOrInt(value, compensation);</div><div class="line"><a name="l03574"></a><span class="lineno"> 3574</span>&#160;</div><div class="line"><a name="l03575"></a><span class="lineno"> 3575</span>&#160;        <span class="keywordflow">if</span>( is_sign )</div><div class="line"><a name="l03576"></a><span class="lineno"> 3576</span>&#160;            <a class="code" href="classttmath_1_1_big.html#a3486d67def6959bd98ee590649c4d1c1">SetSign</a>();</div><div class="line"><a name="l03577"></a><span class="lineno"> 3577</span>&#160;</div><div class="line"><a name="l03578"></a><span class="lineno"> 3578</span>&#160;    <span class="keywordflow">return</span> 0;</div><div class="line"><a name="l03579"></a><span class="lineno"> 3579</span>&#160;    }</div><div class="ttc" id="classttmath_1_1_big_html_a3486d67def6959bd98ee590649c4d1c1"><div class="ttname"><a href="classttmath_1_1_big.html#a3486d67def6959bd98ee590649c4d1c1">ttmath::Big::SetSign</a></div><div class="ttdeci">void SetSign()</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l00726">ttmathbig.h:726</a></div></div>
<div class="ttc" id="namespacettmath_html_a4b0a5dcba29a2c7a0abc8b4403a25ac4"><div class="ttname"><a href="namespacettmath.html#a4b0a5dcba29a2c7a0abc8b4403a25ac4">ttmath::sint</a></div><div class="ttdeci">int64_t sint</div><div class="ttdef"><b>Definition:</b> <a href="ttmathtypes_8h_source.html#l00243">ttmathtypes.h:243</a></div></div>
</div><!-- fragment -->
<p class="reference">References <a class="el" href="ttmathint_8h_source.html#l00105">ttmath::Int&lt; value_size &gt;::ChangeSign()</a>, <a class="el" href="ttmathuint_8h_source.html#l00598">ttmath::UInt&lt; value_size &gt;::CompensationToLeft()</a>, <a class="el" href="ttmathint_8h_source.html#l00156">ttmath::Int&lt; value_size &gt;::IsSign()</a>, and <a class="el" href="ttmathbig_8h_source.html#l00726">ttmath::Big&lt; exp, man &gt;::SetSign()</a>.</p>

</div>
</div>
<a id="acaf20ea76a22aa1717976fc5c415994b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acaf20ea76a22aa1717976fc5c415994b">&#9670;&nbsp;</a></span>FromString() <span class="overload">[1/8]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;uint exp, uint man&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a> <a class="el" href="classttmath_1_1_big.html">ttmath::Big</a>&lt; exp, man &gt;::FromString </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>source</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a>&#160;</td>
          <td class="paramname"><em>base</em> = <code>10</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char **&#160;</td>
          <td class="paramname"><em>after_source</em> = <code>0</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool *&#160;</td>
          <td class="paramname"><em>value_read</em> = <code>0</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>a method for converting a string into its value</p>
<p>it returns 1 if the value is too big &ndash; we cannot pass it into the range of our class Big&lt;exp,man&gt; (or if the base is incorrect)</p>
<p>that means only digits before the comma operator can make this value too big, all digits after the comma we can ignore</p>
<p>'source' - pointer to the string for parsing</p>
<p>if 'after_source' is set that when this method finishes it sets the pointer to the new first character after parsed value</p>
<p>'value_read' - if the pointer is provided that means the value_read will be true only when a value has been actually read, there can be situation where only such a string '-' or '+' will be parsed &ndash; 'after_source' will be different from 'source' but no value has been read (there are no digits) on other words if 'value_read' is true &ndash; there is at least one digit in the string </p>

<p class="definition">Definition at line <a class="el" href="ttmathbig_8h_source.html#l04949">4949</a> of file <a class="el" href="ttmathbig_8h_source.html">ttmathbig.h</a>.</p>
<div class="fragment"><div class="line"><a name="l04950"></a><span class="lineno"> 4950</span>&#160;    {</div><div class="line"><a name="l04951"></a><span class="lineno"> 4951</span>&#160;        Conv conv;</div><div class="line"><a name="l04952"></a><span class="lineno"> 4952</span>&#160;        conv.base = base;</div><div class="line"><a name="l04953"></a><span class="lineno"> 4953</span>&#160;</div><div class="line"><a name="l04954"></a><span class="lineno"> 4954</span>&#160;        <span class="keywordflow">return</span> FromStringBase(source, conv, after_source, value_read);</div><div class="line"><a name="l04955"></a><span class="lineno"> 4955</span>&#160;    }</div></div><!-- fragment -->
<p class="reference">References <a class="el" href="ttmathtypes_8h_source.html#l00413">ttmath::Conv::base</a>.</p>

<p class="reference">Referenced by <a class="el" href="ttmathbig_8h_source.html#l05321">ttmath::Big&lt; exp, man &gt;::Big()</a>, <a class="el" href="ttmathbig_8h_source.html#l04970">ttmath::Big&lt; exp, man &gt;::FromString()</a>, and <a class="el" href="ttmathbig_8h_source.html#l05339">ttmath::Big&lt; exp, man &gt;::operator=()</a>.</p>

</div>
</div>
<a id="a5506d563b02f4c506aa04e313c79d62f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5506d563b02f4c506aa04e313c79d62f">&#9670;&nbsp;</a></span>FromString() <span class="overload">[2/8]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;uint exp, uint man&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a> <a class="el" href="classttmath_1_1_big.html">ttmath::Big</a>&lt; exp, man &gt;::FromString </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>source</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="structttmath_1_1_conv.html">Conv</a> &amp;&#160;</td>
          <td class="paramname"><em>conv</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char **&#160;</td>
          <td class="paramname"><em>after_source</em> = <code>0</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool *&#160;</td>
          <td class="paramname"><em>value_read</em> = <code>0</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>a method for converting a string into its value </p>

<p class="definition">Definition at line <a class="el" href="ttmathbig_8h_source.html#l04961">4961</a> of file <a class="el" href="ttmathbig_8h_source.html">ttmathbig.h</a>.</p>
<div class="fragment"><div class="line"><a name="l04962"></a><span class="lineno"> 4962</span>&#160;    {</div><div class="line"><a name="l04963"></a><span class="lineno"> 4963</span>&#160;        <span class="keywordflow">return</span> FromStringBase(source, conv, after_source, value_read);</div><div class="line"><a name="l04964"></a><span class="lineno"> 4964</span>&#160;    }</div></div><!-- fragment -->
</div>
</div>
<a id="a3aa7b73969b57a1d50081fedf184c222"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3aa7b73969b57a1d50081fedf184c222">&#9670;&nbsp;</a></span>FromString() <span class="overload">[3/8]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;uint exp, uint man&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a> <a class="el" href="classttmath_1_1_big.html">ttmath::Big</a>&lt; exp, man &gt;::FromString </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>string</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a>&#160;</td>
          <td class="paramname"><em>base</em> = <code>10</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char **&#160;</td>
          <td class="paramname"><em>after_source</em> = <code>0</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool *&#160;</td>
          <td class="paramname"><em>value_read</em> = <code>0</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>a method for converting a string into its value </p>

<p class="definition">Definition at line <a class="el" href="ttmathbig_8h_source.html#l04970">4970</a> of file <a class="el" href="ttmathbig_8h_source.html">ttmathbig.h</a>.</p>
<div class="fragment"><div class="line"><a name="l04971"></a><span class="lineno"> 4971</span>&#160;    {</div><div class="line"><a name="l04972"></a><span class="lineno"> 4972</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="classttmath_1_1_big.html#acaf20ea76a22aa1717976fc5c415994b">FromString</a>(<span class="keywordtype">string</span>.c_str(), base, after_source, value_read);</div><div class="line"><a name="l04973"></a><span class="lineno"> 4973</span>&#160;    }</div><div class="ttc" id="classttmath_1_1_big_html_acaf20ea76a22aa1717976fc5c415994b"><div class="ttname"><a href="classttmath_1_1_big.html#acaf20ea76a22aa1717976fc5c415994b">ttmath::Big::FromString</a></div><div class="ttdeci">uint FromString(const char *source, uint base=10, const char **after_source=0, bool *value_read=0)</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l04949">ttmathbig.h:4949</a></div></div>
</div><!-- fragment -->
<p class="reference">References <a class="el" href="ttmathbig_8h_source.html#l04949">ttmath::Big&lt; exp, man &gt;::FromString()</a>.</p>

</div>
</div>
<a id="ac33449ca94ff43cb02dde88ab6f3a18a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac33449ca94ff43cb02dde88ab6f3a18a">&#9670;&nbsp;</a></span>FromString() <span class="overload">[4/8]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;uint exp, uint man&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a> <a class="el" href="classttmath_1_1_big.html">ttmath::Big</a>&lt; exp, man &gt;::FromString </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>string</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="structttmath_1_1_conv.html">Conv</a> &amp;&#160;</td>
          <td class="paramname"><em>conv</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char **&#160;</td>
          <td class="paramname"><em>after_source</em> = <code>0</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool *&#160;</td>
          <td class="paramname"><em>value_read</em> = <code>0</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>a method for converting a string into its value </p>

<p class="definition">Definition at line <a class="el" href="ttmathbig_8h_source.html#l04979">4979</a> of file <a class="el" href="ttmathbig_8h_source.html">ttmathbig.h</a>.</p>
<div class="fragment"><div class="line"><a name="l04980"></a><span class="lineno"> 4980</span>&#160;    {</div><div class="line"><a name="l04981"></a><span class="lineno"> 4981</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="classttmath_1_1_big.html#acaf20ea76a22aa1717976fc5c415994b">FromString</a>(<span class="keywordtype">string</span>.c_str(), conv, after_source, value_read);</div><div class="line"><a name="l04982"></a><span class="lineno"> 4982</span>&#160;    }</div><div class="ttc" id="classttmath_1_1_big_html_acaf20ea76a22aa1717976fc5c415994b"><div class="ttname"><a href="classttmath_1_1_big.html#acaf20ea76a22aa1717976fc5c415994b">ttmath::Big::FromString</a></div><div class="ttdeci">uint FromString(const char *source, uint base=10, const char **after_source=0, bool *value_read=0)</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l04949">ttmathbig.h:4949</a></div></div>
</div><!-- fragment -->
<p class="reference">References <a class="el" href="ttmathbig_8h_source.html#l04949">ttmath::Big&lt; exp, man &gt;::FromString()</a>.</p>

</div>
</div>
<a id="aefbb46b40a69874b432f7aec43f8d805"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aefbb46b40a69874b432f7aec43f8d805">&#9670;&nbsp;</a></span>FromString() <span class="overload">[5/8]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;uint exp, uint man&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a> <a class="el" href="classttmath_1_1_big.html">ttmath::Big</a>&lt; exp, man &gt;::FromString </td>
          <td>(</td>
          <td class="paramtype">const wchar_t *&#160;</td>
          <td class="paramname"><em>source</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a>&#160;</td>
          <td class="paramname"><em>base</em> = <code>10</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const wchar_t **&#160;</td>
          <td class="paramname"><em>after_source</em> = <code>0</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool *&#160;</td>
          <td class="paramname"><em>value_read</em> = <code>0</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>a method for converting a string into its value </p>

<p class="definition">Definition at line <a class="el" href="ttmathbig_8h_source.html#l04990">4990</a> of file <a class="el" href="ttmathbig_8h_source.html">ttmathbig.h</a>.</p>
<div class="fragment"><div class="line"><a name="l04991"></a><span class="lineno"> 4991</span>&#160;    {</div><div class="line"><a name="l04992"></a><span class="lineno"> 4992</span>&#160;        Conv conv;</div><div class="line"><a name="l04993"></a><span class="lineno"> 4993</span>&#160;        conv.base = base;</div><div class="line"><a name="l04994"></a><span class="lineno"> 4994</span>&#160;</div><div class="line"><a name="l04995"></a><span class="lineno"> 4995</span>&#160;        <span class="keywordflow">return</span> FromStringBase(source, conv, after_source, value_read);</div><div class="line"><a name="l04996"></a><span class="lineno"> 4996</span>&#160;    }</div></div><!-- fragment -->
<p class="reference">References <a class="el" href="ttmathtypes_8h_source.html#l00413">ttmath::Conv::base</a>.</p>

</div>
</div>
<a id="acad4eec61a4e9b96ea604681b0428199"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acad4eec61a4e9b96ea604681b0428199">&#9670;&nbsp;</a></span>FromString() <span class="overload">[6/8]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;uint exp, uint man&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a> <a class="el" href="classttmath_1_1_big.html">ttmath::Big</a>&lt; exp, man &gt;::FromString </td>
          <td>(</td>
          <td class="paramtype">const wchar_t *&#160;</td>
          <td class="paramname"><em>source</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="structttmath_1_1_conv.html">Conv</a> &amp;&#160;</td>
          <td class="paramname"><em>conv</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const wchar_t **&#160;</td>
          <td class="paramname"><em>after_source</em> = <code>0</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool *&#160;</td>
          <td class="paramname"><em>value_read</em> = <code>0</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>a method for converting a string into its value </p>

<p class="definition">Definition at line <a class="el" href="ttmathbig_8h_source.html#l05002">5002</a> of file <a class="el" href="ttmathbig_8h_source.html">ttmathbig.h</a>.</p>
<div class="fragment"><div class="line"><a name="l05003"></a><span class="lineno"> 5003</span>&#160;    {</div><div class="line"><a name="l05004"></a><span class="lineno"> 5004</span>&#160;        <span class="keywordflow">return</span> FromStringBase(source, conv, after_source, value_read);</div><div class="line"><a name="l05005"></a><span class="lineno"> 5005</span>&#160;    }</div></div><!-- fragment -->
</div>
</div>
<a id="a8ee2980e2a25efa1779756b3c69ee8a8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8ee2980e2a25efa1779756b3c69ee8a8">&#9670;&nbsp;</a></span>FromString() <span class="overload">[7/8]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;uint exp, uint man&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a> <a class="el" href="classttmath_1_1_big.html">ttmath::Big</a>&lt; exp, man &gt;::FromString </td>
          <td>(</td>
          <td class="paramtype">const std::wstring &amp;&#160;</td>
          <td class="paramname"><em>string</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a>&#160;</td>
          <td class="paramname"><em>base</em> = <code>10</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const wchar_t **&#160;</td>
          <td class="paramname"><em>after_source</em> = <code>0</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool *&#160;</td>
          <td class="paramname"><em>value_read</em> = <code>0</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>a method for converting a string into its value </p>

<p class="definition">Definition at line <a class="el" href="ttmathbig_8h_source.html#l05011">5011</a> of file <a class="el" href="ttmathbig_8h_source.html">ttmathbig.h</a>.</p>
<div class="fragment"><div class="line"><a name="l05012"></a><span class="lineno"> 5012</span>&#160;    {</div><div class="line"><a name="l05013"></a><span class="lineno"> 5013</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="classttmath_1_1_big.html#acaf20ea76a22aa1717976fc5c415994b">FromString</a>(<span class="keywordtype">string</span>.c_str(), base, after_source, value_read);</div><div class="line"><a name="l05014"></a><span class="lineno"> 5014</span>&#160;    }</div><div class="ttc" id="classttmath_1_1_big_html_acaf20ea76a22aa1717976fc5c415994b"><div class="ttname"><a href="classttmath_1_1_big.html#acaf20ea76a22aa1717976fc5c415994b">ttmath::Big::FromString</a></div><div class="ttdeci">uint FromString(const char *source, uint base=10, const char **after_source=0, bool *value_read=0)</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l04949">ttmathbig.h:4949</a></div></div>
</div><!-- fragment -->
<p class="reference">References <a class="el" href="ttmathbig_8h_source.html#l04949">ttmath::Big&lt; exp, man &gt;::FromString()</a>.</p>

</div>
</div>
<a id="ad2ffa272f4b4f3297168c7c488991cd3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad2ffa272f4b4f3297168c7c488991cd3">&#9670;&nbsp;</a></span>FromString() <span class="overload">[8/8]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;uint exp, uint man&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a> <a class="el" href="classttmath_1_1_big.html">ttmath::Big</a>&lt; exp, man &gt;::FromString </td>
          <td>(</td>
          <td class="paramtype">const std::wstring &amp;&#160;</td>
          <td class="paramname"><em>string</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="structttmath_1_1_conv.html">Conv</a> &amp;&#160;</td>
          <td class="paramname"><em>conv</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const wchar_t **&#160;</td>
          <td class="paramname"><em>after_source</em> = <code>0</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool *&#160;</td>
          <td class="paramname"><em>value_read</em> = <code>0</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>a method for converting a string into its value </p>

<p class="definition">Definition at line <a class="el" href="ttmathbig_8h_source.html#l05020">5020</a> of file <a class="el" href="ttmathbig_8h_source.html">ttmathbig.h</a>.</p>
<div class="fragment"><div class="line"><a name="l05021"></a><span class="lineno"> 5021</span>&#160;    {</div><div class="line"><a name="l05022"></a><span class="lineno"> 5022</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="classttmath_1_1_big.html#acaf20ea76a22aa1717976fc5c415994b">FromString</a>(<span class="keywordtype">string</span>.c_str(), conv, after_source, value_read);</div><div class="line"><a name="l05023"></a><span class="lineno"> 5023</span>&#160;    }</div><div class="ttc" id="classttmath_1_1_big_html_acaf20ea76a22aa1717976fc5c415994b"><div class="ttname"><a href="classttmath_1_1_big.html#acaf20ea76a22aa1717976fc5c415994b">ttmath::Big::FromString</a></div><div class="ttdeci">uint FromString(const char *source, uint base=10, const char **after_source=0, bool *value_read=0)</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l04949">ttmathbig.h:4949</a></div></div>
</div><!-- fragment -->
<p class="reference">References <a class="el" href="ttmathbig_8h_source.html#l04949">ttmath::Big&lt; exp, man &gt;::FromString()</a>.</p>

</div>
</div>
<a id="acae9e6888929068aecc5cca01126d3c5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acae9e6888929068aecc5cca01126d3c5">&#9670;&nbsp;</a></span>FromUInt() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;uint exp, uint man&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a> <a class="el" href="classttmath_1_1_big.html">ttmath::Big</a>&lt; exp, man &gt;::FromUInt </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a>&#160;</td>
          <td class="paramname"><em>value</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>a method for converting 'uint' to this class </p>

<p class="definition">Definition at line <a class="el" href="ttmathbig_8h_source.html#l02538">2538</a> of file <a class="el" href="ttmathbig_8h_source.html">ttmathbig.h</a>.</p>
<div class="fragment"><div class="line"><a name="l02539"></a><span class="lineno"> 2539</span>&#160;    {</div><div class="line"><a name="l02540"></a><span class="lineno"> 2540</span>&#160;        <span class="keywordflow">if</span>( value == 0 )</div><div class="line"><a name="l02541"></a><span class="lineno"> 2541</span>&#160;        {</div><div class="line"><a name="l02542"></a><span class="lineno"> 2542</span>&#160;            <a class="code" href="classttmath_1_1_big.html#a1b5980e7d66c1a6bcfe55d85eccb1821">SetZero</a>();</div><div class="line"><a name="l02543"></a><span class="lineno"> 2543</span>&#160;            <span class="keywordflow">return</span> 0;</div><div class="line"><a name="l02544"></a><span class="lineno"> 2544</span>&#160;        }</div><div class="line"><a name="l02545"></a><span class="lineno"> 2545</span>&#160;</div><div class="line"><a name="l02546"></a><span class="lineno"> 2546</span>&#160;        info = 0;</div><div class="line"><a name="l02547"></a><span class="lineno"> 2547</span>&#160;</div><div class="line"><a name="l02548"></a><span class="lineno"> 2548</span>&#160;        <span class="keywordflow">for</span>(<a class="code" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a> i=0 ; i&lt;man-1 ; ++i)</div><div class="line"><a name="l02549"></a><span class="lineno"> 2549</span>&#160;            mantissa.<a class="code" href="classttmath_1_1_u_int.html#a54c67e2e3d1a4d6ea96e828d15c4443a">table</a>[i] = 0;</div><div class="line"><a name="l02550"></a><span class="lineno"> 2550</span>&#160;</div><div class="line"><a name="l02551"></a><span class="lineno"> 2551</span>&#160;        mantissa.<a class="code" href="classttmath_1_1_u_int.html#a54c67e2e3d1a4d6ea96e828d15c4443a">table</a>[man-1] = value;</div><div class="line"><a name="l02552"></a><span class="lineno"> 2552</span>&#160;        exponent = -<a class="code" href="namespacettmath.html#a4b0a5dcba29a2c7a0abc8b4403a25ac4">sint</a>(man-1) * <a class="code" href="namespacettmath.html#a4b0a5dcba29a2c7a0abc8b4403a25ac4">sint</a>(<a class="code" href="ttmathtypes_8h.html#aef936ab7a0d7f0c34a9a794b3072cf6a">TTMATH_BITS_PER_UINT</a>);</div><div class="line"><a name="l02553"></a><span class="lineno"> 2553</span>&#160;</div><div class="line"><a name="l02554"></a><span class="lineno"> 2554</span>&#160;        <span class="comment">// there shouldn&#39;t be a carry because &#39;value&#39; has the &#39;uint&#39; type </span></div><div class="line"><a name="l02555"></a><span class="lineno"> 2555</span>&#160;        <a class="code" href="classttmath_1_1_big.html#aedc4abe8e1d984289b41830e9a1d67fb">Standardizing</a>();</div><div class="line"><a name="l02556"></a><span class="lineno"> 2556</span>&#160;</div><div class="line"><a name="l02557"></a><span class="lineno"> 2557</span>&#160;    <span class="keywordflow">return</span> 0;</div><div class="line"><a name="l02558"></a><span class="lineno"> 2558</span>&#160;    }</div><div class="ttc" id="classttmath_1_1_u_int_html_a54c67e2e3d1a4d6ea96e828d15c4443a"><div class="ttname"><a href="classttmath_1_1_u_int.html#a54c67e2e3d1a4d6ea96e828d15c4443a">ttmath::UInt::table</a></div><div class="ttdeci">uint table[value_size]</div><div class="ttdef"><b>Definition:</b> <a href="ttmathuint_8h_source.html#l00081">ttmathuint.h:81</a></div></div>
<div class="ttc" id="ttmathtypes_8h_html_aef936ab7a0d7f0c34a9a794b3072cf6a"><div class="ttname"><a href="ttmathtypes_8h.html#aef936ab7a0d7f0c34a9a794b3072cf6a">TTMATH_BITS_PER_UINT</a></div><div class="ttdeci">#define TTMATH_BITS_PER_UINT</div><div class="ttdef"><b>Definition:</b> <a href="ttmathtypes_8h_source.html#l00253">ttmathtypes.h:253</a></div></div>
<div class="ttc" id="classttmath_1_1_big_html_aedc4abe8e1d984289b41830e9a1d67fb"><div class="ttname"><a href="classttmath_1_1_big.html#aedc4abe8e1d984289b41830e9a1d67fb">ttmath::Big::Standardizing</a></div><div class="ttdeci">uint Standardizing()</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l00173">ttmathbig.h:173</a></div></div>
<div class="ttc" id="namespacettmath_html_a4b0a5dcba29a2c7a0abc8b4403a25ac4"><div class="ttname"><a href="namespacettmath.html#a4b0a5dcba29a2c7a0abc8b4403a25ac4">ttmath::sint</a></div><div class="ttdeci">int64_t sint</div><div class="ttdef"><b>Definition:</b> <a href="ttmathtypes_8h_source.html#l00243">ttmathtypes.h:243</a></div></div>
<div class="ttc" id="namespacettmath_html_a5c1fccc9761aaa3d2b6dd32c224f5dac"><div class="ttname"><a href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">ttmath::uint</a></div><div class="ttdeci">uint64_t uint</div><div class="ttdef"><b>Definition:</b> <a href="ttmathtypes_8h_source.html#l00238">ttmathtypes.h:238</a></div></div>
<div class="ttc" id="classttmath_1_1_big_html_a1b5980e7d66c1a6bcfe55d85eccb1821"><div class="ttname"><a href="classttmath_1_1_big.html#a1b5980e7d66c1a6bcfe55d85eccb1821">ttmath::Big::SetZero</a></div><div class="ttdeci">void SetZero()</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l00256">ttmathbig.h:256</a></div></div>
</div><!-- fragment -->
<p class="reference">References <a class="el" href="ttmathbig_8h_source.html#l00256">ttmath::Big&lt; exp, man &gt;::SetZero()</a>, <a class="el" href="ttmathbig_8h_source.html#l00173">ttmath::Big&lt; exp, man &gt;::Standardizing()</a>, <a class="el" href="ttmathuint_8h_source.html#l00081">ttmath::UInt&lt; value_size &gt;::table</a>, and <a class="el" href="ttmathtypes_8h_source.html#l00253">TTMATH_BITS_PER_UINT</a>.</p>

<p class="reference">Referenced by <a class="el" href="ttmathbig_8h_source.html#l03171">ttmath::Big&lt; exp, man &gt;::Big()</a>, <a class="el" href="ttmathbig_8h_source.html#l02564">ttmath::Big&lt; exp, man &gt;::FromInt()</a>, and <a class="el" href="ttmathbig_8h_source.html#l03130">ttmath::Big&lt; exp, man &gt;::operator=()</a>.</p>

</div>
</div>
<a id="a1051668083a766216ca3dc218d7dbf23"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1051668083a766216ca3dc218d7dbf23">&#9670;&nbsp;</a></span>FromUInt() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;uint exp, uint man&gt; </div>
<div class="memtemplate">
template&lt;uint int_size&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a> <a class="el" href="classttmath_1_1_big.html">ttmath::Big</a>&lt; exp, man &gt;::FromUInt </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classttmath_1_1_u_int.html">UInt</a>&lt; int_size &gt;&#160;</td>
          <td class="paramname"><em>value</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>a method for converting from 'UInt&lt;int_size&gt;' to this class </p>

<p class="definition">Definition at line <a class="el" href="ttmathbig_8h_source.html#l03538">3538</a> of file <a class="el" href="ttmathbig_8h_source.html">ttmathbig.h</a>.</p>
<div class="fragment"><div class="line"><a name="l03539"></a><span class="lineno"> 3539</span>&#160;    {</div><div class="line"><a name="l03540"></a><span class="lineno"> 3540</span>&#160;        info = 0;</div><div class="line"><a name="l03541"></a><span class="lineno"> 3541</span>&#160;        <a class="code" href="namespacettmath.html#a4b0a5dcba29a2c7a0abc8b4403a25ac4">sint</a> compensation = (<a class="code" href="namespacettmath.html#a4b0a5dcba29a2c7a0abc8b4403a25ac4">sint</a>)value.CompensationToLeft();</div><div class="line"><a name="l03542"></a><span class="lineno"> 3542</span>&#160;    </div><div class="line"><a name="l03543"></a><span class="lineno"> 3543</span>&#160;    <span class="keywordflow">return</span> FromUIntOrInt(value, compensation);</div><div class="line"><a name="l03544"></a><span class="lineno"> 3544</span>&#160;    }</div><div class="ttc" id="namespacettmath_html_a4b0a5dcba29a2c7a0abc8b4403a25ac4"><div class="ttname"><a href="namespacettmath.html#a4b0a5dcba29a2c7a0abc8b4403a25ac4">ttmath::sint</a></div><div class="ttdeci">int64_t sint</div><div class="ttdef"><b>Definition:</b> <a href="ttmathtypes_8h_source.html#l00243">ttmathtypes.h:243</a></div></div>
</div><!-- fragment -->
<p class="reference">References <a class="el" href="ttmathuint_8h_source.html#l00598">ttmath::UInt&lt; value_size &gt;::CompensationToLeft()</a>.</p>

</div>
</div>
<a id="a8b97269748f5897406ce4d8cecbca432"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8b97269748f5897406ce4d8cecbca432">&#9670;&nbsp;</a></span>GreaterWithoutSignThan()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;uint exp, uint man&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">bool <a class="el" href="classttmath_1_1_big.html">ttmath::Big</a>&lt; exp, man &gt;::GreaterWithoutSignThan </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classttmath_1_1_big.html">Big</a>&lt; exp, man &gt; &amp;&#160;</td>
          <td class="paramname"><em>ss2</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>this method performs the formula 'abs(this) &gt; abs(ss2)' and returns the result</p>
<p>(in other words it treats 'this' and 'ss2' as values without a sign) we don't check the NaN flag </p>

<p class="definition">Definition at line <a class="el" href="ttmathbig_8h_source.html#l05453">5453</a> of file <a class="el" href="ttmathbig_8h_source.html">ttmathbig.h</a>.</p>
<div class="fragment"><div class="line"><a name="l05454"></a><span class="lineno"> 5454</span>&#160;    {</div><div class="line"><a name="l05455"></a><span class="lineno"> 5455</span>&#160;        <span class="keywordflow">if</span>( <a class="code" href="classttmath_1_1_big.html#a00cdfa94cc491487709a3f1356fd0a14">IsZero</a>() )</div><div class="line"><a name="l05456"></a><span class="lineno"> 5456</span>&#160;        {</div><div class="line"><a name="l05457"></a><span class="lineno"> 5457</span>&#160;            <span class="keywordflow">if</span>( ss2.IsZero() )</div><div class="line"><a name="l05458"></a><span class="lineno"> 5458</span>&#160;            {</div><div class="line"><a name="l05459"></a><span class="lineno"> 5459</span>&#160;                <span class="comment">// we&#39;ve got two zeroes</span></div><div class="line"><a name="l05460"></a><span class="lineno"> 5460</span>&#160;                <span class="keywordflow">return</span> <span class="keyword">false</span>;</div><div class="line"><a name="l05461"></a><span class="lineno"> 5461</span>&#160;            }</div><div class="line"><a name="l05462"></a><span class="lineno"> 5462</span>&#160;            <span class="keywordflow">else</span></div><div class="line"><a name="l05463"></a><span class="lineno"> 5463</span>&#160;            {</div><div class="line"><a name="l05464"></a><span class="lineno"> 5464</span>&#160;                <span class="comment">// this==0 and ss2!=0</span></div><div class="line"><a name="l05465"></a><span class="lineno"> 5465</span>&#160;                <span class="keywordflow">return</span> <span class="keyword">false</span>;</div><div class="line"><a name="l05466"></a><span class="lineno"> 5466</span>&#160;            }</div><div class="line"><a name="l05467"></a><span class="lineno"> 5467</span>&#160;        }</div><div class="line"><a name="l05468"></a><span class="lineno"> 5468</span>&#160;</div><div class="line"><a name="l05469"></a><span class="lineno"> 5469</span>&#160;        <span class="keywordflow">if</span>( ss2.IsZero() )</div><div class="line"><a name="l05470"></a><span class="lineno"> 5470</span>&#160;        {</div><div class="line"><a name="l05471"></a><span class="lineno"> 5471</span>&#160;            <span class="comment">// this!=0 and ss2==0</span></div><div class="line"><a name="l05472"></a><span class="lineno"> 5472</span>&#160;            <span class="keywordflow">return</span> <span class="keyword">true</span>;</div><div class="line"><a name="l05473"></a><span class="lineno"> 5473</span>&#160;        }</div><div class="line"><a name="l05474"></a><span class="lineno"> 5474</span>&#160;</div><div class="line"><a name="l05475"></a><span class="lineno"> 5475</span>&#160;        <span class="comment">// we&#39;re using the fact that all bits in mantissa are pushed</span></div><div class="line"><a name="l05476"></a><span class="lineno"> 5476</span>&#160;        <span class="comment">// into the left side -- Standardizing()</span></div><div class="line"><a name="l05477"></a><span class="lineno"> 5477</span>&#160;        <span class="keywordflow">if</span>( exponent == ss2.exponent )</div><div class="line"><a name="l05478"></a><span class="lineno"> 5478</span>&#160;            <span class="keywordflow">return</span> mantissa &gt; ss2.mantissa;</div><div class="line"><a name="l05479"></a><span class="lineno"> 5479</span>&#160;</div><div class="line"><a name="l05480"></a><span class="lineno"> 5480</span>&#160;    <span class="keywordflow">return</span> exponent &gt; ss2.exponent;</div><div class="line"><a name="l05481"></a><span class="lineno"> 5481</span>&#160;    }</div><div class="ttc" id="classttmath_1_1_big_html_a00cdfa94cc491487709a3f1356fd0a14"><div class="ttname"><a href="classttmath_1_1_big.html#a00cdfa94cc491487709a3f1356fd0a14">ttmath::Big::IsZero</a></div><div class="ttdeci">bool IsZero() const</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l00648">ttmathbig.h:648</a></div></div>
</div><!-- fragment -->
<p class="reference">References <a class="el" href="ttmathbig_8h_source.html#l00648">ttmath::Big&lt; exp, man &gt;::IsZero()</a>.</p>

</div>
</div>
<a id="ac3a17607588c394ee7fa674e83f0d54a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac3a17607588c394ee7fa674e83f0d54a">&#9670;&nbsp;</a></span>IsInfoBit()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;uint exp, uint man&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">bool <a class="el" href="classttmath_1_1_big.html">ttmath::Big</a>&lt; exp, man &gt;::IsInfoBit </td>
          <td>(</td>
          <td class="paramtype">unsigned char&#160;</td>
          <td class="paramname"><em>bit</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>this method returns true if a specific bit in the 'info' variable is set</p>
<p>bit is one of: TTMATH_BIG_SIGN, TTMATH_BIG_NAN etc. </p>

<p class="definition">Definition at line <a class="el" href="ttmathbig_8h_source.html#l00247">247</a> of file <a class="el" href="ttmathbig_8h_source.html">ttmathbig.h</a>.</p>
<div class="fragment"><div class="line"><a name="l00248"></a><span class="lineno">  248</span>&#160;    {</div><div class="line"><a name="l00249"></a><span class="lineno">  249</span>&#160;        <span class="keywordflow">return</span> (info &amp; bit) != 0;</div><div class="line"><a name="l00250"></a><span class="lineno">  250</span>&#160;    }</div></div><!-- fragment -->
<p class="reference">Referenced by <a class="el" href="ttmathbig_8h_source.html#l00667">ttmath::Big&lt; exp, man &gt;::IsNan()</a>, <a class="el" href="ttmathbig_8h_source.html#l00658">ttmath::Big&lt; exp, man &gt;::IsSign()</a>, and <a class="el" href="ttmathbig_8h_source.html#l00648">ttmath::Big&lt; exp, man &gt;::IsZero()</a>.</p>

</div>
</div>
<a id="aa2709ec35d8cd0e39e1c72a834f2ee3c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa2709ec35d8cd0e39e1c72a834f2ee3c">&#9670;&nbsp;</a></span>IsInteger()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;uint exp, uint man&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">bool <a class="el" href="classttmath_1_1_big.html">ttmath::Big</a>&lt; exp, man &gt;::IsInteger </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>this method returns true if the value is integer (there is no a fraction)</p>
<p>(we don't check NaN) </p>

<p class="definition">Definition at line <a class="el" href="ttmathbig_8h_source.html#l05883">5883</a> of file <a class="el" href="ttmathbig_8h_source.html">ttmathbig.h</a>.</p>
<div class="fragment"><div class="line"><a name="l05884"></a><span class="lineno"> 5884</span>&#160;    {</div><div class="line"><a name="l05885"></a><span class="lineno"> 5885</span>&#160;        <span class="keywordflow">if</span>( <a class="code" href="classttmath_1_1_big.html#a00cdfa94cc491487709a3f1356fd0a14">IsZero</a>() )</div><div class="line"><a name="l05886"></a><span class="lineno"> 5886</span>&#160;            <span class="keywordflow">return</span> <span class="keyword">true</span>;</div><div class="line"><a name="l05887"></a><span class="lineno"> 5887</span>&#160;</div><div class="line"><a name="l05888"></a><span class="lineno"> 5888</span>&#160;        <span class="keywordflow">if</span>( !exponent.<a class="code" href="classttmath_1_1_int.html#af91fdc65105f7ceb071c2a8a98d0cbfb">IsSign</a>() )</div><div class="line"><a name="l05889"></a><span class="lineno"> 5889</span>&#160;            <span class="comment">// exponent &gt;=0 -- the value don&#39;t have any fractions</span></div><div class="line"><a name="l05890"></a><span class="lineno"> 5890</span>&#160;            <span class="keywordflow">return</span> <span class="keyword">true</span>;</div><div class="line"><a name="l05891"></a><span class="lineno"> 5891</span>&#160;</div><div class="line"><a name="l05892"></a><span class="lineno"> 5892</span>&#160;        <span class="keywordflow">if</span>( exponent &lt;= -<a class="code" href="namespacettmath.html#a4b0a5dcba29a2c7a0abc8b4403a25ac4">sint</a>(man*<a class="code" href="ttmathtypes_8h.html#aef936ab7a0d7f0c34a9a794b3072cf6a">TTMATH_BITS_PER_UINT</a>) )</div><div class="line"><a name="l05893"></a><span class="lineno"> 5893</span>&#160;            <span class="comment">// the value is from (-1,1)</span></div><div class="line"><a name="l05894"></a><span class="lineno"> 5894</span>&#160;            <span class="keywordflow">return</span> <span class="keyword">false</span>;</div><div class="line"><a name="l05895"></a><span class="lineno"> 5895</span>&#160;</div><div class="line"><a name="l05896"></a><span class="lineno"> 5896</span>&#160;        <span class="comment">// exponent is in range (-man*TTMATH_BITS_PER_UINT, 0)</span></div><div class="line"><a name="l05897"></a><span class="lineno"> 5897</span>&#160;        <a class="code" href="namespacettmath.html#a4b0a5dcba29a2c7a0abc8b4403a25ac4">sint</a> e = exponent.<a class="code" href="classttmath_1_1_int.html#af934f141ffee622c5b19edc661d2d76f">ToInt</a>();</div><div class="line"><a name="l05898"></a><span class="lineno"> 5898</span>&#160;        e = -e; <span class="comment">// e means how many bits we must check</span></div><div class="line"><a name="l05899"></a><span class="lineno"> 5899</span>&#160;</div><div class="line"><a name="l05900"></a><span class="lineno"> 5900</span>&#160;        <a class="code" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a> len  = e / <a class="code" href="ttmathtypes_8h.html#aef936ab7a0d7f0c34a9a794b3072cf6a">TTMATH_BITS_PER_UINT</a>;</div><div class="line"><a name="l05901"></a><span class="lineno"> 5901</span>&#160;        <a class="code" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a> rest = e % <a class="code" href="ttmathtypes_8h.html#aef936ab7a0d7f0c34a9a794b3072cf6a">TTMATH_BITS_PER_UINT</a>;</div><div class="line"><a name="l05902"></a><span class="lineno"> 5902</span>&#160;        <a class="code" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a> i    = 0;</div><div class="line"><a name="l05903"></a><span class="lineno"> 5903</span>&#160;</div><div class="line"><a name="l05904"></a><span class="lineno"> 5904</span>&#160;        <span class="keywordflow">for</span>( ; i&lt;len ; ++i )</div><div class="line"><a name="l05905"></a><span class="lineno"> 5905</span>&#160;            <span class="keywordflow">if</span>( mantissa.<a class="code" href="classttmath_1_1_u_int.html#a54c67e2e3d1a4d6ea96e828d15c4443a">table</a>[i] != 0 )</div><div class="line"><a name="l05906"></a><span class="lineno"> 5906</span>&#160;                <span class="keywordflow">return</span> <span class="keyword">false</span>;</div><div class="line"><a name="l05907"></a><span class="lineno"> 5907</span>&#160;</div><div class="line"><a name="l05908"></a><span class="lineno"> 5908</span>&#160;        <span class="keywordflow">if</span>( rest &gt; 0 )</div><div class="line"><a name="l05909"></a><span class="lineno"> 5909</span>&#160;        {</div><div class="line"><a name="l05910"></a><span class="lineno"> 5910</span>&#160;            <a class="code" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a> rest_mask = <a class="code" href="ttmathtypes_8h.html#a3af4b841f70a529a150c820780e1eb40">TTMATH_UINT_MAX_VALUE</a> &gt;&gt; (<a class="code" href="ttmathtypes_8h.html#aef936ab7a0d7f0c34a9a794b3072cf6a">TTMATH_BITS_PER_UINT</a> - rest);</div><div class="line"><a name="l05911"></a><span class="lineno"> 5911</span>&#160;            <span class="keywordflow">if</span>( (mantissa.<a class="code" href="classttmath_1_1_u_int.html#a54c67e2e3d1a4d6ea96e828d15c4443a">table</a>[i] &amp; rest_mask) != 0 )</div><div class="line"><a name="l05912"></a><span class="lineno"> 5912</span>&#160;                <span class="keywordflow">return</span> <span class="keyword">false</span>;</div><div class="line"><a name="l05913"></a><span class="lineno"> 5913</span>&#160;        }</div><div class="line"><a name="l05914"></a><span class="lineno"> 5914</span>&#160;</div><div class="line"><a name="l05915"></a><span class="lineno"> 5915</span>&#160;    <span class="keywordflow">return</span> <span class="keyword">true</span>;</div><div class="line"><a name="l05916"></a><span class="lineno"> 5916</span>&#160;    }</div><div class="ttc" id="classttmath_1_1_u_int_html_a54c67e2e3d1a4d6ea96e828d15c4443a"><div class="ttname"><a href="classttmath_1_1_u_int.html#a54c67e2e3d1a4d6ea96e828d15c4443a">ttmath::UInt::table</a></div><div class="ttdeci">uint table[value_size]</div><div class="ttdef"><b>Definition:</b> <a href="ttmathuint_8h_source.html#l00081">ttmathuint.h:81</a></div></div>
<div class="ttc" id="classttmath_1_1_big_html_a00cdfa94cc491487709a3f1356fd0a14"><div class="ttname"><a href="classttmath_1_1_big.html#a00cdfa94cc491487709a3f1356fd0a14">ttmath::Big::IsZero</a></div><div class="ttdeci">bool IsZero() const</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l00648">ttmathbig.h:648</a></div></div>
<div class="ttc" id="ttmathtypes_8h_html_a3af4b841f70a529a150c820780e1eb40"><div class="ttname"><a href="ttmathtypes_8h.html#a3af4b841f70a529a150c820780e1eb40">TTMATH_UINT_MAX_VALUE</a></div><div class="ttdeci">#define TTMATH_UINT_MAX_VALUE</div><div class="ttdef"><b>Definition:</b> <a href="ttmathtypes_8h_source.html#l00264">ttmathtypes.h:264</a></div></div>
<div class="ttc" id="classttmath_1_1_int_html_af91fdc65105f7ceb071c2a8a98d0cbfb"><div class="ttname"><a href="classttmath_1_1_int.html#af91fdc65105f7ceb071c2a8a98d0cbfb">ttmath::Int::IsSign</a></div><div class="ttdeci">bool IsSign() const</div><div class="ttdef"><b>Definition:</b> <a href="ttmathint_8h_source.html#l00156">ttmathint.h:156</a></div></div>
<div class="ttc" id="ttmathtypes_8h_html_aef936ab7a0d7f0c34a9a794b3072cf6a"><div class="ttname"><a href="ttmathtypes_8h.html#aef936ab7a0d7f0c34a9a794b3072cf6a">TTMATH_BITS_PER_UINT</a></div><div class="ttdeci">#define TTMATH_BITS_PER_UINT</div><div class="ttdef"><b>Definition:</b> <a href="ttmathtypes_8h_source.html#l00253">ttmathtypes.h:253</a></div></div>
<div class="ttc" id="namespacettmath_html_a4b0a5dcba29a2c7a0abc8b4403a25ac4"><div class="ttname"><a href="namespacettmath.html#a4b0a5dcba29a2c7a0abc8b4403a25ac4">ttmath::sint</a></div><div class="ttdeci">int64_t sint</div><div class="ttdef"><b>Definition:</b> <a href="ttmathtypes_8h_source.html#l00243">ttmathtypes.h:243</a></div></div>
<div class="ttc" id="namespacettmath_html_a5c1fccc9761aaa3d2b6dd32c224f5dac"><div class="ttname"><a href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">ttmath::uint</a></div><div class="ttdeci">uint64_t uint</div><div class="ttdef"><b>Definition:</b> <a href="ttmathtypes_8h_source.html#l00238">ttmathtypes.h:238</a></div></div>
<div class="ttc" id="classttmath_1_1_int_html_af934f141ffee622c5b19edc661d2d76f"><div class="ttname"><a href="classttmath_1_1_int.html#af934f141ffee622c5b19edc661d2d76f">ttmath::Int::ToInt</a></div><div class="ttdeci">sint ToInt() const</div><div class="ttdef"><b>Definition:</b> <a href="ttmathint_8h_source.html#l01132">ttmathint.h:1132</a></div></div>
</div><!-- fragment -->
<p class="reference">References <a class="el" href="ttmathint_8h_source.html#l00156">ttmath::Int&lt; value_size &gt;::IsSign()</a>, <a class="el" href="ttmathbig_8h_source.html#l00648">ttmath::Big&lt; exp, man &gt;::IsZero()</a>, <a class="el" href="ttmathuint_8h_source.html#l00081">ttmath::UInt&lt; value_size &gt;::table</a>, <a class="el" href="ttmathint_8h_source.html#l01132">ttmath::Int&lt; value_size &gt;::ToInt()</a>, <a class="el" href="ttmathtypes_8h_source.html#l00253">TTMATH_BITS_PER_UINT</a>, and <a class="el" href="ttmathtypes_8h_source.html#l00264">TTMATH_UINT_MAX_VALUE</a>.</p>

<p class="reference">Referenced by <a class="el" href="ttmathbig_8h_source.html#l01797">ttmath::Big&lt; exp, man &gt;::Pow()</a>, and <a class="el" href="ttmathbig_8h_source.html#l01835">ttmath::Big&lt; exp, man &gt;::Sqrt()</a>.</p>

</div>
</div>
<a id="a7575e10d9fff2f301a66bb05ab472111"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7575e10d9fff2f301a66bb05ab472111">&#9670;&nbsp;</a></span>IsNan()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;uint exp, uint man&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">bool <a class="el" href="classttmath_1_1_big.html">ttmath::Big</a>&lt; exp, man &gt;::IsNan </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>this method returns true when there is not a valid number </p>

<p class="definition">Definition at line <a class="el" href="ttmathbig_8h_source.html#l00667">667</a> of file <a class="el" href="ttmathbig_8h_source.html">ttmathbig.h</a>.</p>
<div class="fragment"><div class="line"><a name="l00668"></a><span class="lineno">  668</span>&#160;    {</div><div class="line"><a name="l00669"></a><span class="lineno">  669</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="classttmath_1_1_big.html#ac3a17607588c394ee7fa674e83f0d54a">IsInfoBit</a>(<a class="code" href="ttmathbig_8h.html#a6219093f504910a0e8415844157c70fc">TTMATH_BIG_NAN</a>);</div><div class="line"><a name="l00670"></a><span class="lineno">  670</span>&#160;    }</div><div class="ttc" id="ttmathbig_8h_html_a6219093f504910a0e8415844157c70fc"><div class="ttname"><a href="ttmathbig_8h.html#a6219093f504910a0e8415844157c70fc">TTMATH_BIG_NAN</a></div><div class="ttdeci">#define TTMATH_BIG_NAN</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l00104">ttmathbig.h:104</a></div></div>
<div class="ttc" id="classttmath_1_1_big_html_ac3a17607588c394ee7fa674e83f0d54a"><div class="ttname"><a href="classttmath_1_1_big.html#ac3a17607588c394ee7fa674e83f0d54a">ttmath::Big::IsInfoBit</a></div><div class="ttdeci">bool IsInfoBit(unsigned char bit) const</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l00247">ttmathbig.h:247</a></div></div>
</div><!-- fragment -->
<p class="reference">References <a class="el" href="ttmathbig_8h_source.html#l00247">ttmath::Big&lt; exp, man &gt;::IsInfoBit()</a>, and <a class="el" href="ttmathbig_8h_source.html#l00104">TTMATH_BIG_NAN</a>.</p>

<p class="reference">Referenced by <a class="el" href="ttmathbig_8h_source.html#l00930">ttmath::Big&lt; exp, man &gt;::Add()</a>, <a class="el" href="ttmathbig_8h_source.html#l01002">ttmath::Big&lt; exp, man &gt;::BitAnd()</a>, <a class="el" href="ttmathbig_8h_source.html#l01063">ttmath::Big&lt; exp, man &gt;::BitOr()</a>, <a class="el" href="ttmathbig_8h_source.html#l01123">ttmath::Big&lt; exp, man &gt;::BitXor()</a>, <a class="el" href="ttmathbig_8h_source.html#l01966">ttmath::Big&lt; exp, man &gt;::Exp()</a>, <a class="el" href="ttmathbig_8h_source.html#l02240">ttmath::Big&lt; exp, man &gt;::FromBig()</a>, <a class="el" href="ttmathbig_8h_source.html#l02144">ttmath::Big&lt; exp, man &gt;::Ln()</a>, <a class="el" href="ttmathbig_8h_source.html#l02189">ttmath::Big&lt; exp, man &gt;::Log()</a>, <a class="el" href="ttmathbig_8h_source.html#l01233">ttmath::Big&lt; exp, man &gt;::MulInt()</a>, <a class="el" href="ttmathbig_8h_source.html#l01179">ttmath::Big&lt; exp, man &gt;::MulUInt()</a>, <a class="el" href="ttmathbig_8h_source.html#l01584">ttmath::Big&lt; exp, man &gt;::Pow()</a>, <a class="el" href="ttmathbig_8h_source.html#l01767">ttmath::Big&lt; exp, man &gt;::PowFrac()</a>, <a class="el" href="ttmathbig_8h_source.html#l01731">ttmath::Big&lt; exp, man &gt;::PowInt()</a>, <a class="el" href="ttmathbig_8h_source.html#l01675">ttmath::Big&lt; exp, man &gt;::PowUInt()</a>, <a class="el" href="ttmathbig_8h_source.html#l05842">ttmath::Big&lt; exp, man &gt;::RemainFraction()</a>, <a class="el" href="ttmathbig_8h_source.html#l05929">ttmath::Big&lt; exp, man &gt;::Round()</a>, <a class="el" href="ttmathbig_8h_source.html#l00696">ttmath::Big&lt; exp, man &gt;::Sgn()</a>, <a class="el" href="ttmathbig_8h_source.html#l05808">ttmath::Big&lt; exp, man &gt;::SkipFraction()</a>, <a class="el" href="ttmathbig_8h_source.html#l01835">ttmath::Big&lt; exp, man &gt;::Sqrt()</a>, and <a class="el" href="ttmathbig_8h_source.html#l02979">ttmath::Big&lt; exp, man &gt;::ToDouble()</a>.</p>

</div>
</div>
<a id="ac8f89807eb1878d93d76fe609f4a6b42"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac8f89807eb1878d93d76fe609f4a6b42">&#9670;&nbsp;</a></span>IsSign()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;uint exp, uint man&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">bool <a class="el" href="classttmath_1_1_big.html">ttmath::Big</a>&lt; exp, man &gt;::IsSign </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>this method returns true when there's the sign set also we don't check the NaN flag </p>

<p class="definition">Definition at line <a class="el" href="ttmathbig_8h_source.html#l00658">658</a> of file <a class="el" href="ttmathbig_8h_source.html">ttmathbig.h</a>.</p>
<div class="fragment"><div class="line"><a name="l00659"></a><span class="lineno">  659</span>&#160;    {</div><div class="line"><a name="l00660"></a><span class="lineno">  660</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="classttmath_1_1_big.html#ac3a17607588c394ee7fa674e83f0d54a">IsInfoBit</a>(<a class="code" href="ttmathbig_8h.html#a9222f49a8d16599b8b7c77c149796649">TTMATH_BIG_SIGN</a>);</div><div class="line"><a name="l00661"></a><span class="lineno">  661</span>&#160;    }</div><div class="ttc" id="classttmath_1_1_big_html_ac3a17607588c394ee7fa674e83f0d54a"><div class="ttname"><a href="classttmath_1_1_big.html#ac3a17607588c394ee7fa674e83f0d54a">ttmath::Big::IsInfoBit</a></div><div class="ttdeci">bool IsInfoBit(unsigned char bit) const</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l00247">ttmathbig.h:247</a></div></div>
<div class="ttc" id="ttmathbig_8h_html_a9222f49a8d16599b8b7c77c149796649"><div class="ttname"><a href="ttmathbig_8h.html#a9222f49a8d16599b8b7c77c149796649">TTMATH_BIG_SIGN</a></div><div class="ttdeci">#define TTMATH_BIG_SIGN</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l00097">ttmathbig.h:97</a></div></div>
</div><!-- fragment -->
<p class="reference">References <a class="el" href="ttmathbig_8h_source.html#l00247">ttmath::Big&lt; exp, man &gt;::IsInfoBit()</a>, and <a class="el" href="ttmathbig_8h_source.html#l00097">TTMATH_BIG_SIGN</a>.</p>

<p class="reference">Referenced by <a class="el" href="ttmathbig_8h_source.html#l00930">ttmath::Big&lt; exp, man &gt;::Add()</a>, <a class="el" href="ttmathbig_8h_source.html#l01002">ttmath::Big&lt; exp, man &gt;::BitAnd()</a>, <a class="el" href="ttmathbig_8h_source.html#l01063">ttmath::Big&lt; exp, man &gt;::BitOr()</a>, <a class="el" href="ttmathbig_8h_source.html#l01123">ttmath::Big&lt; exp, man &gt;::BitXor()</a>, <a class="el" href="ttmathbig_8h_source.html#l00740">ttmath::Big&lt; exp, man &gt;::ChangeSign()</a>, <a class="el" href="ttmathbig_8h_source.html#l02144">ttmath::Big&lt; exp, man &gt;::Ln()</a>, <a class="el" href="ttmathbig_8h_source.html#l02189">ttmath::Big&lt; exp, man &gt;::Log()</a>, <a class="el" href="ttmathbig_8h_source.html#l01233">ttmath::Big&lt; exp, man &gt;::MulInt()</a>, <a class="el" href="ttmathbig_8h_source.html#l01797">ttmath::Big&lt; exp, man &gt;::Pow()</a>, <a class="el" href="ttmathbig_8h_source.html#l01731">ttmath::Big&lt; exp, man &gt;::PowInt()</a>, <a class="el" href="ttmathbig_8h_source.html#l01675">ttmath::Big&lt; exp, man &gt;::PowUInt()</a>, <a class="el" href="ttmathbig_8h_source.html#l05929">ttmath::Big&lt; exp, man &gt;::Round()</a>, <a class="el" href="ttmathbig_8h_source.html#l00696">ttmath::Big&lt; exp, man &gt;::Sgn()</a>, <a class="el" href="ttmathbig_8h_source.html#l01835">ttmath::Big&lt; exp, man &gt;::Sqrt()</a>, <a class="el" href="ttmathbig_8h_source.html#l02979">ttmath::Big&lt; exp, man &gt;::ToDouble()</a>, <a class="el" href="ttmathbig_8h_source.html#l02392">ttmath::Big&lt; exp, man &gt;::ToInt()</a>, and <a class="el" href="ttmathbig_8h_source.html#l02351">ttmath::Big&lt; exp, man &gt;::ToUInt()</a>.</p>

</div>
</div>
<a id="a00cdfa94cc491487709a3f1356fd0a14"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a00cdfa94cc491487709a3f1356fd0a14">&#9670;&nbsp;</a></span>IsZero()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;uint exp, uint man&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">bool <a class="el" href="classttmath_1_1_big.html">ttmath::Big</a>&lt; exp, man &gt;::IsZero </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>testing whether there is a value zero or not </p>

<p class="definition">Definition at line <a class="el" href="ttmathbig_8h_source.html#l00648">648</a> of file <a class="el" href="ttmathbig_8h_source.html">ttmathbig.h</a>.</p>
<div class="fragment"><div class="line"><a name="l00649"></a><span class="lineno">  649</span>&#160;    {</div><div class="line"><a name="l00650"></a><span class="lineno">  650</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="classttmath_1_1_big.html#ac3a17607588c394ee7fa674e83f0d54a">IsInfoBit</a>(<a class="code" href="ttmathbig_8h.html#a158d25d5cc270e04a7b5cbdb928b74f0">TTMATH_BIG_ZERO</a>);</div><div class="line"><a name="l00651"></a><span class="lineno">  651</span>&#160;    }</div><div class="ttc" id="ttmathbig_8h_html_a158d25d5cc270e04a7b5cbdb928b74f0"><div class="ttname"><a href="ttmathbig_8h.html#a158d25d5cc270e04a7b5cbdb928b74f0">TTMATH_BIG_ZERO</a></div><div class="ttdeci">#define TTMATH_BIG_ZERO</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l00113">ttmathbig.h:113</a></div></div>
<div class="ttc" id="classttmath_1_1_big_html_ac3a17607588c394ee7fa674e83f0d54a"><div class="ttname"><a href="classttmath_1_1_big.html#ac3a17607588c394ee7fa674e83f0d54a">ttmath::Big::IsInfoBit</a></div><div class="ttdeci">bool IsInfoBit(unsigned char bit) const</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l00247">ttmathbig.h:247</a></div></div>
</div><!-- fragment -->
<p class="reference">References <a class="el" href="ttmathbig_8h_source.html#l00247">ttmath::Big&lt; exp, man &gt;::IsInfoBit()</a>, and <a class="el" href="ttmathbig_8h_source.html#l00113">TTMATH_BIG_ZERO</a>.</p>

<p class="reference">Referenced by <a class="el" href="ttmathbig_8h_source.html#l00930">ttmath::Big&lt; exp, man &gt;::Add()</a>, <a class="el" href="ttmathbig_8h_source.html#l01002">ttmath::Big&lt; exp, man &gt;::BitAnd()</a>, <a class="el" href="ttmathbig_8h_source.html#l01063">ttmath::Big&lt; exp, man &gt;::BitOr()</a>, <a class="el" href="ttmathbig_8h_source.html#l01123">ttmath::Big&lt; exp, man &gt;::BitXor()</a>, <a class="el" href="ttmathbig_8h_source.html#l00740">ttmath::Big&lt; exp, man &gt;::ChangeSign()</a>, <a class="el" href="ttmathbig_8h_source.html#l05491">ttmath::Big&lt; exp, man &gt;::EqualWithoutSign()</a>, <a class="el" href="ttmathbig_8h_source.html#l01966">ttmath::Big&lt; exp, man &gt;::Exp()</a>, <a class="el" href="ttmathbig_8h_source.html#l05453">ttmath::Big&lt; exp, man &gt;::GreaterWithoutSignThan()</a>, <a class="el" href="ttmathbig_8h_source.html#l05883">ttmath::Big&lt; exp, man &gt;::IsInteger()</a>, <a class="el" href="ttmathbig_8h_source.html#l02144">ttmath::Big&lt; exp, man &gt;::Ln()</a>, <a class="el" href="ttmathbig_8h_source.html#l02189">ttmath::Big&lt; exp, man &gt;::Log()</a>, <a class="el" href="ttmathbig_8h_source.html#l01233">ttmath::Big&lt; exp, man &gt;::MulInt()</a>, <a class="el" href="ttmathbig_8h_source.html#l01179">ttmath::Big&lt; exp, man &gt;::MulUInt()</a>, <a class="el" href="ttmathbig_8h_source.html#l01584">ttmath::Big&lt; exp, man &gt;::Pow()</a>, <a class="el" href="ttmathbig_8h_source.html#l01731">ttmath::Big&lt; exp, man &gt;::PowInt()</a>, <a class="el" href="ttmathbig_8h_source.html#l01675">ttmath::Big&lt; exp, man &gt;::PowUInt()</a>, <a class="el" href="ttmathbig_8h_source.html#l05842">ttmath::Big&lt; exp, man &gt;::RemainFraction()</a>, <a class="el" href="ttmathbig_8h_source.html#l05929">ttmath::Big&lt; exp, man &gt;::Round()</a>, <a class="el" href="ttmathbig_8h_source.html#l00696">ttmath::Big&lt; exp, man &gt;::Sgn()</a>, <a class="el" href="ttmathbig_8h_source.html#l05808">ttmath::Big&lt; exp, man &gt;::SkipFraction()</a>, <a class="el" href="ttmathbig_8h_source.html#l05419">ttmath::Big&lt; exp, man &gt;::SmallerWithoutSignThan()</a>, <a class="el" href="ttmathbig_8h_source.html#l01835">ttmath::Big&lt; exp, man &gt;::Sqrt()</a>, and <a class="el" href="ttmathbig_8h_source.html#l02979">ttmath::Big&lt; exp, man &gt;::ToDouble()</a>.</p>

</div>
</div>
<a id="aa4a581c558d22d3c086819d5854f6cab"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa4a581c558d22d3c086819d5854f6cab">&#9670;&nbsp;</a></span>LibType()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;uint exp, uint man&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="namespacettmath.html#a5c3bd12cd3d050852a60e022e5e12799">LibTypeCode</a> <a class="el" href="classttmath_1_1_big.html">ttmath::Big</a>&lt; exp, man &gt;::LibType </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>returning the currect type of the library </p>

<p class="definition">Definition at line <a class="el" href="ttmathbig_8h_source.html#l00154">154</a> of file <a class="el" href="ttmathbig_8h_source.html">ttmathbig.h</a>.</p>
<div class="fragment"><div class="line"><a name="l00155"></a><span class="lineno">  155</span>&#160;    {</div><div class="line"><a name="l00156"></a><span class="lineno">  156</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="classttmath_1_1_u_int.html#adce4f7a208708d70114fc49091f389c6">UInt&lt;man&gt;::LibType</a>();</div><div class="line"><a name="l00157"></a><span class="lineno">  157</span>&#160;    }</div><div class="ttc" id="classttmath_1_1_u_int_html_adce4f7a208708d70114fc49091f389c6"><div class="ttname"><a href="classttmath_1_1_u_int.html#adce4f7a208708d70114fc49091f389c6">ttmath::UInt::LibType</a></div><div class="ttdeci">static LibTypeCode LibType()</div><div class="ttdef"><b>Definition:</b> <a href="ttmathuint__x86__64_8h_source.html#l00126">ttmathuint_x86_64.h:126</a></div></div>
</div><!-- fragment -->
<p class="reference">References <a class="el" href="ttmathuint__x86__64_8h_source.html#l00126">ttmath::UInt&lt; value_size &gt;::LibType()</a>.</p>

</div>
</div>
<a id="abb8fcf0f22ac6c88948be1ed7bde0c4d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abb8fcf0f22ac6c88948be1ed7bde0c4d">&#9670;&nbsp;</a></span>LibTypeStr()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;uint exp, uint man&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static const char* <a class="el" href="classttmath_1_1_big.html">ttmath::Big</a>&lt; exp, man &gt;::LibTypeStr </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>returning the string represents the currect type of the library we have following types:</p><ul>
<li>asm_vc_32 - with asm code designed for Microsoft Visual C++ (32 bits)</li>
<li>asm_gcc_32 - with asm code designed for GCC (32 bits)</li>
<li>asm_vc_64 - with asm for VC (64 bit)</li>
<li>asm_gcc_64 - with asm for GCC (64 bit)</li>
<li>no_asm_32 - pure C++ version (32 bit) - without any asm code</li>
<li>no_asm_64 - pure C++ version (64 bit) - without any asm code </li>
</ul>

<p class="definition">Definition at line <a class="el" href="ttmathbig_8h_source.html#l00145">145</a> of file <a class="el" href="ttmathbig_8h_source.html">ttmathbig.h</a>.</p>
<div class="fragment"><div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160;    {</div><div class="line"><a name="l00147"></a><span class="lineno">  147</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="classttmath_1_1_u_int.html#add0cf14a0684fc8e7d8b1471759b35e0">UInt&lt;man&gt;::LibTypeStr</a>();</div><div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160;    }</div><div class="ttc" id="classttmath_1_1_u_int_html_add0cf14a0684fc8e7d8b1471759b35e0"><div class="ttname"><a href="classttmath_1_1_u_int.html#add0cf14a0684fc8e7d8b1471759b35e0">ttmath::UInt::LibTypeStr</a></div><div class="ttdeci">static const char * LibTypeStr()</div><div class="ttdef"><b>Definition:</b> <a href="ttmathuint__x86__64_8h_source.html#l00108">ttmathuint_x86_64.h:108</a></div></div>
</div><!-- fragment -->
<p class="reference">References <a class="el" href="ttmathuint__x86__64_8h_source.html#l00108">ttmath::UInt&lt; value_size &gt;::LibTypeStr()</a>.</p>

</div>
</div>
<a id="ae6addbbd86cd8b9ed60d0afc8c80181c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae6addbbd86cd8b9ed60d0afc8c80181c">&#9670;&nbsp;</a></span>Ln()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;uint exp, uint man&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a> <a class="el" href="classttmath_1_1_big.html">ttmath::Big</a>&lt; exp, man &gt;::Ln </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classttmath_1_1_big.html">Big</a>&lt; exp, man &gt; &amp;&#160;</td>
          <td class="paramname"><em>x</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Natural logarithm this = ln(x) (a logarithm with the base equal 'e')</p>
<p>we're using the fact that our value is stored in form of: </p><pre class="fragment">x = mantissa * 2^exponent
</pre><p>then </p><pre class="fragment">ln(x) = ln (mantissa * 2^exponent) = ln (mantissa) + (exponent * ln (2))
</pre><p>the mantissa we'll show as a value from range &lt;1,2) because the logarithm is decreasing too fast when 'x' is going to 0</p>
<p>return values:</p><ul>
<li>0 - ok</li>
<li>1 - overflow (carry)</li>
<li>2 - incorrect argument (x&lt;=0) </li>
</ul>

<p class="definition">Definition at line <a class="el" href="ttmathbig_8h_source.html#l02144">2144</a> of file <a class="el" href="ttmathbig_8h_source.html">ttmathbig.h</a>.</p>
<div class="fragment"><div class="line"><a name="l02145"></a><span class="lineno"> 2145</span>&#160;    {</div><div class="line"><a name="l02146"></a><span class="lineno"> 2146</span>&#160;        <span class="keywordflow">if</span>( x.IsNan() )</div><div class="line"><a name="l02147"></a><span class="lineno"> 2147</span>&#160;            <span class="keywordflow">return</span> <a class="code" href="classttmath_1_1_big.html#a0681595612114e8ab1dc9c8f3e8590e7">CheckCarry</a>(1);</div><div class="line"><a name="l02148"></a><span class="lineno"> 2148</span>&#160;</div><div class="line"><a name="l02149"></a><span class="lineno"> 2149</span>&#160;        <span class="keywordflow">if</span>( x.IsSign() || x.IsZero() )</div><div class="line"><a name="l02150"></a><span class="lineno"> 2150</span>&#160;        {</div><div class="line"><a name="l02151"></a><span class="lineno"> 2151</span>&#160;            <a class="code" href="classttmath_1_1_big.html#a568b91071e386e75dffb0aebdf1c47ec">SetNan</a>();</div><div class="line"><a name="l02152"></a><span class="lineno"> 2152</span>&#160;            <span class="keywordflow">return</span> 2;</div><div class="line"><a name="l02153"></a><span class="lineno"> 2153</span>&#160;        }</div><div class="line"><a name="l02154"></a><span class="lineno"> 2154</span>&#160;</div><div class="line"><a name="l02155"></a><span class="lineno"> 2155</span>&#160;        Big&lt;exp,man&gt; exponent_temp;</div><div class="line"><a name="l02156"></a><span class="lineno"> 2156</span>&#160;        exponent_temp.FromInt( x.exponent );</div><div class="line"><a name="l02157"></a><span class="lineno"> 2157</span>&#160;</div><div class="line"><a name="l02158"></a><span class="lineno"> 2158</span>&#160;        <span class="comment">// m will be the value of the mantissa in range &lt;1,2)</span></div><div class="line"><a name="l02159"></a><span class="lineno"> 2159</span>&#160;        Big&lt;exp,man&gt; m(x);</div><div class="line"><a name="l02160"></a><span class="lineno"> 2160</span>&#160;        m.exponent = -<a class="code" href="namespacettmath.html#a4b0a5dcba29a2c7a0abc8b4403a25ac4">sint</a>(man*<a class="code" href="ttmathtypes_8h.html#aef936ab7a0d7f0c34a9a794b3072cf6a">TTMATH_BITS_PER_UINT</a> - 1);</div><div class="line"><a name="l02161"></a><span class="lineno"> 2161</span>&#160;</div><div class="line"><a name="l02162"></a><span class="lineno"> 2162</span>&#160;        <span class="comment">// we must add &#39;man*TTMATH_BITS_PER_UINT-1&#39; because we&#39;ve taken it from the mantissa</span></div><div class="line"><a name="l02163"></a><span class="lineno"> 2163</span>&#160;        <a class="code" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a> c = exponent_temp.Add(man*<a class="code" href="ttmathtypes_8h.html#aef936ab7a0d7f0c34a9a794b3072cf6a">TTMATH_BITS_PER_UINT</a>-1);</div><div class="line"><a name="l02164"></a><span class="lineno"> 2164</span>&#160;</div><div class="line"><a name="l02165"></a><span class="lineno"> 2165</span>&#160;        LnSurrounding1(m);</div><div class="line"><a name="l02166"></a><span class="lineno"> 2166</span>&#160;</div><div class="line"><a name="l02167"></a><span class="lineno"> 2167</span>&#160;        Big&lt;exp,man&gt; ln2;</div><div class="line"><a name="l02168"></a><span class="lineno"> 2168</span>&#160;        ln2.SetLn2();</div><div class="line"><a name="l02169"></a><span class="lineno"> 2169</span>&#160;        c += exponent_temp.Mul(ln2);</div><div class="line"><a name="l02170"></a><span class="lineno"> 2170</span>&#160;        c += <a class="code" href="classttmath_1_1_big.html#af8cc709585199e6f5b48e9b4e058b043">Add</a>(exponent_temp);</div><div class="line"><a name="l02171"></a><span class="lineno"> 2171</span>&#160;</div><div class="line"><a name="l02172"></a><span class="lineno"> 2172</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="classttmath_1_1_big.html#a0681595612114e8ab1dc9c8f3e8590e7">CheckCarry</a>(c);</div><div class="line"><a name="l02173"></a><span class="lineno"> 2173</span>&#160;    }</div><div class="ttc" id="classttmath_1_1_big_html_a0681595612114e8ab1dc9c8f3e8590e7"><div class="ttname"><a href="classttmath_1_1_big.html#a0681595612114e8ab1dc9c8f3e8590e7">ttmath::Big::CheckCarry</a></div><div class="ttdeci">uint CheckCarry(uint c)</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l00121">ttmathbig.h:121</a></div></div>
<div class="ttc" id="classttmath_1_1_big_html_a568b91071e386e75dffb0aebdf1c47ec"><div class="ttname"><a href="classttmath_1_1_big.html#a568b91071e386e75dffb0aebdf1c47ec">ttmath::Big::SetNan</a></div><div class="ttdeci">void SetNan()</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l00296">ttmathbig.h:296</a></div></div>
<div class="ttc" id="ttmathtypes_8h_html_aef936ab7a0d7f0c34a9a794b3072cf6a"><div class="ttname"><a href="ttmathtypes_8h.html#aef936ab7a0d7f0c34a9a794b3072cf6a">TTMATH_BITS_PER_UINT</a></div><div class="ttdeci">#define TTMATH_BITS_PER_UINT</div><div class="ttdef"><b>Definition:</b> <a href="ttmathtypes_8h_source.html#l00253">ttmathtypes.h:253</a></div></div>
<div class="ttc" id="classttmath_1_1_big_html_af8cc709585199e6f5b48e9b4e058b043"><div class="ttname"><a href="classttmath_1_1_big.html#af8cc709585199e6f5b48e9b4e058b043">ttmath::Big::Add</a></div><div class="ttdeci">uint Add(Big&lt; exp, man &gt; ss2, bool round=true, bool adding=true)</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l00930">ttmathbig.h:930</a></div></div>
<div class="ttc" id="namespacettmath_html_a4b0a5dcba29a2c7a0abc8b4403a25ac4"><div class="ttname"><a href="namespacettmath.html#a4b0a5dcba29a2c7a0abc8b4403a25ac4">ttmath::sint</a></div><div class="ttdeci">int64_t sint</div><div class="ttdef"><b>Definition:</b> <a href="ttmathtypes_8h_source.html#l00243">ttmathtypes.h:243</a></div></div>
<div class="ttc" id="namespacettmath_html_a5c1fccc9761aaa3d2b6dd32c224f5dac"><div class="ttname"><a href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">ttmath::uint</a></div><div class="ttdeci">uint64_t uint</div><div class="ttdef"><b>Definition:</b> <a href="ttmathtypes_8h_source.html#l00238">ttmathtypes.h:238</a></div></div>
</div><!-- fragment -->
<p class="reference">References <a class="el" href="ttmathbig_8h_source.html#l00930">ttmath::Big&lt; exp, man &gt;::Add()</a>, <a class="el" href="ttmathbig_8h_source.html#l00121">ttmath::Big&lt; exp, man &gt;::CheckCarry()</a>, <a class="el" href="ttmathbig_8h_source.html#l02564">ttmath::Big&lt; exp, man &gt;::FromInt()</a>, <a class="el" href="ttmathbig_8h_source.html#l00667">ttmath::Big&lt; exp, man &gt;::IsNan()</a>, <a class="el" href="ttmathbig_8h_source.html#l00658">ttmath::Big&lt; exp, man &gt;::IsSign()</a>, <a class="el" href="ttmathbig_8h_source.html#l00648">ttmath::Big&lt; exp, man &gt;::IsZero()</a>, <a class="el" href="ttmathbig_8h_source.html#l01373">ttmath::Big&lt; exp, man &gt;::Mul()</a>, <a class="el" href="ttmathbig_8h_source.html#l00490">ttmath::Big&lt; exp, man &gt;::SetLn2()</a>, <a class="el" href="ttmathbig_8h_source.html#l00296">ttmath::Big&lt; exp, man &gt;::SetNan()</a>, and <a class="el" href="ttmathtypes_8h_source.html#l00253">TTMATH_BITS_PER_UINT</a>.</p>

<p class="reference">Referenced by <a class="el" href="ttmathbig_8h_source.html#l02189">ttmath::Big&lt; exp, man &gt;::Log()</a>, <a class="el" href="ttmathbig_8h_source.html#l01767">ttmath::Big&lt; exp, man &gt;::PowFrac()</a>, and <a class="el" href="ttmathbig_8h_source.html#l01835">ttmath::Big&lt; exp, man &gt;::Sqrt()</a>.</p>

</div>
</div>
<a id="a6a50f7bec2c05935c06bbe1dd43fa4ac"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6a50f7bec2c05935c06bbe1dd43fa4ac">&#9670;&nbsp;</a></span>Log()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;uint exp, uint man&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a> <a class="el" href="classttmath_1_1_big.html">ttmath::Big</a>&lt; exp, man &gt;::Log </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classttmath_1_1_big.html">Big</a>&lt; exp, man &gt; &amp;&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classttmath_1_1_big.html">Big</a>&lt; exp, man &gt; &amp;&#160;</td>
          <td class="paramname"><em>base</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Logarithm from 'x' with a 'base'</p>
<p>we're using the formula: </p><pre class="fragment">Log(x) with 'base' = ln(x) / ln(base)
</pre><p>return values:</p><ul>
<li>0 - ok</li>
<li>1 - overflow</li>
<li>2 - incorrect argument (x&lt;=0)</li>
<li>3 - incorrect base (a&lt;=0 or a=1) </li>
</ul>

<p class="definition">Definition at line <a class="el" href="ttmathbig_8h_source.html#l02189">2189</a> of file <a class="el" href="ttmathbig_8h_source.html">ttmathbig.h</a>.</p>
<div class="fragment"><div class="line"><a name="l02190"></a><span class="lineno"> 2190</span>&#160;    {</div><div class="line"><a name="l02191"></a><span class="lineno"> 2191</span>&#160;        <span class="keywordflow">if</span>( x.IsNan() || base.IsNan() )</div><div class="line"><a name="l02192"></a><span class="lineno"> 2192</span>&#160;            <span class="keywordflow">return</span> <a class="code" href="classttmath_1_1_big.html#a0681595612114e8ab1dc9c8f3e8590e7">CheckCarry</a>(1);</div><div class="line"><a name="l02193"></a><span class="lineno"> 2193</span>&#160;</div><div class="line"><a name="l02194"></a><span class="lineno"> 2194</span>&#160;        <span class="keywordflow">if</span>( x.IsSign() || x.IsZero() )</div><div class="line"><a name="l02195"></a><span class="lineno"> 2195</span>&#160;        {</div><div class="line"><a name="l02196"></a><span class="lineno"> 2196</span>&#160;            <a class="code" href="classttmath_1_1_big.html#a568b91071e386e75dffb0aebdf1c47ec">SetNan</a>();</div><div class="line"><a name="l02197"></a><span class="lineno"> 2197</span>&#160;            <span class="keywordflow">return</span> 2;</div><div class="line"><a name="l02198"></a><span class="lineno"> 2198</span>&#160;        }</div><div class="line"><a name="l02199"></a><span class="lineno"> 2199</span>&#160;</div><div class="line"><a name="l02200"></a><span class="lineno"> 2200</span>&#160;        Big&lt;exp,man&gt; denominator;;</div><div class="line"><a name="l02201"></a><span class="lineno"> 2201</span>&#160;        denominator.SetOne();</div><div class="line"><a name="l02202"></a><span class="lineno"> 2202</span>&#160;</div><div class="line"><a name="l02203"></a><span class="lineno"> 2203</span>&#160;        <span class="keywordflow">if</span>( base.IsSign() || base.IsZero() || base==denominator )</div><div class="line"><a name="l02204"></a><span class="lineno"> 2204</span>&#160;        {</div><div class="line"><a name="l02205"></a><span class="lineno"> 2205</span>&#160;            <a class="code" href="classttmath_1_1_big.html#a568b91071e386e75dffb0aebdf1c47ec">SetNan</a>();</div><div class="line"><a name="l02206"></a><span class="lineno"> 2206</span>&#160;            <span class="keywordflow">return</span> 3;</div><div class="line"><a name="l02207"></a><span class="lineno"> 2207</span>&#160;        }</div><div class="line"><a name="l02208"></a><span class="lineno"> 2208</span>&#160;        </div><div class="line"><a name="l02209"></a><span class="lineno"> 2209</span>&#160;        <span class="keywordflow">if</span>( x == denominator ) <span class="comment">// (this is: if x == 1)</span></div><div class="line"><a name="l02210"></a><span class="lineno"> 2210</span>&#160;        {</div><div class="line"><a name="l02211"></a><span class="lineno"> 2211</span>&#160;            <span class="comment">// log(1) is 0</span></div><div class="line"><a name="l02212"></a><span class="lineno"> 2212</span>&#160;            <a class="code" href="classttmath_1_1_big.html#a1b5980e7d66c1a6bcfe55d85eccb1821">SetZero</a>();</div><div class="line"><a name="l02213"></a><span class="lineno"> 2213</span>&#160;            <span class="keywordflow">return</span> 0;</div><div class="line"><a name="l02214"></a><span class="lineno"> 2214</span>&#160;        }</div><div class="line"><a name="l02215"></a><span class="lineno"> 2215</span>&#160;</div><div class="line"><a name="l02216"></a><span class="lineno"> 2216</span>&#160;        <span class="comment">// another error values we&#39;ve tested at the beginning</span></div><div class="line"><a name="l02217"></a><span class="lineno"> 2217</span>&#160;        <span class="comment">// there can only be a carry</span></div><div class="line"><a name="l02218"></a><span class="lineno"> 2218</span>&#160;        <a class="code" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a> c = <a class="code" href="classttmath_1_1_big.html#ae6addbbd86cd8b9ed60d0afc8c80181c">Ln</a>(x);</div><div class="line"><a name="l02219"></a><span class="lineno"> 2219</span>&#160;</div><div class="line"><a name="l02220"></a><span class="lineno"> 2220</span>&#160;        c += denominator.Ln(base);</div><div class="line"><a name="l02221"></a><span class="lineno"> 2221</span>&#160;        c += <a class="code" href="classttmath_1_1_big.html#a57fa951410244551c3449910fe129d64">Div</a>(denominator);</div><div class="line"><a name="l02222"></a><span class="lineno"> 2222</span>&#160;</div><div class="line"><a name="l02223"></a><span class="lineno"> 2223</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="classttmath_1_1_big.html#a0681595612114e8ab1dc9c8f3e8590e7">CheckCarry</a>(c);</div><div class="line"><a name="l02224"></a><span class="lineno"> 2224</span>&#160;    }</div><div class="ttc" id="classttmath_1_1_big_html_a0681595612114e8ab1dc9c8f3e8590e7"><div class="ttname"><a href="classttmath_1_1_big.html#a0681595612114e8ab1dc9c8f3e8590e7">ttmath::Big::CheckCarry</a></div><div class="ttdeci">uint CheckCarry(uint c)</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l00121">ttmathbig.h:121</a></div></div>
<div class="ttc" id="classttmath_1_1_big_html_ae6addbbd86cd8b9ed60d0afc8c80181c"><div class="ttname"><a href="classttmath_1_1_big.html#ae6addbbd86cd8b9ed60d0afc8c80181c">ttmath::Big::Ln</a></div><div class="ttdeci">uint Ln(const Big&lt; exp, man &gt; &amp;x)</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l02144">ttmathbig.h:2144</a></div></div>
<div class="ttc" id="classttmath_1_1_big_html_a568b91071e386e75dffb0aebdf1c47ec"><div class="ttname"><a href="classttmath_1_1_big.html#a568b91071e386e75dffb0aebdf1c47ec">ttmath::Big::SetNan</a></div><div class="ttdeci">void SetNan()</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l00296">ttmathbig.h:296</a></div></div>
<div class="ttc" id="classttmath_1_1_big_html_a57fa951410244551c3449910fe129d64"><div class="ttname"><a href="classttmath_1_1_big.html#a57fa951410244551c3449910fe129d64">ttmath::Big::Div</a></div><div class="ttdeci">uint Div(const Big&lt; exp, man &gt; &amp;ss2, bool round=true)</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l01470">ttmathbig.h:1470</a></div></div>
<div class="ttc" id="namespacettmath_html_a5c1fccc9761aaa3d2b6dd32c224f5dac"><div class="ttname"><a href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">ttmath::uint</a></div><div class="ttdeci">uint64_t uint</div><div class="ttdef"><b>Definition:</b> <a href="ttmathtypes_8h_source.html#l00238">ttmathtypes.h:238</a></div></div>
<div class="ttc" id="classttmath_1_1_big_html_a1b5980e7d66c1a6bcfe55d85eccb1821"><div class="ttname"><a href="classttmath_1_1_big.html#a1b5980e7d66c1a6bcfe55d85eccb1821">ttmath::Big::SetZero</a></div><div class="ttdeci">void SetZero()</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l00256">ttmathbig.h:256</a></div></div>
</div><!-- fragment -->
<p class="reference">References <a class="el" href="ttmathbig_8h_source.html#l00121">ttmath::Big&lt; exp, man &gt;::CheckCarry()</a>, <a class="el" href="ttmathbig_8h_source.html#l01470">ttmath::Big&lt; exp, man &gt;::Div()</a>, <a class="el" href="ttmathbig_8h_source.html#l00667">ttmath::Big&lt; exp, man &gt;::IsNan()</a>, <a class="el" href="ttmathbig_8h_source.html#l00658">ttmath::Big&lt; exp, man &gt;::IsSign()</a>, <a class="el" href="ttmathbig_8h_source.html#l00648">ttmath::Big&lt; exp, man &gt;::IsZero()</a>, <a class="el" href="ttmathbig_8h_source.html#l02144">ttmath::Big&lt; exp, man &gt;::Ln()</a>, <a class="el" href="ttmathbig_8h_source.html#l00296">ttmath::Big&lt; exp, man &gt;::SetNan()</a>, <a class="el" href="ttmathbig_8h_source.html#l00271">ttmath::Big&lt; exp, man &gt;::SetOne()</a>, and <a class="el" href="ttmathbig_8h_source.html#l00256">ttmath::Big&lt; exp, man &gt;::SetZero()</a>.</p>

</div>
</div>
<a id="abdd4b5bd37f010f2c3dc6e770827693d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abdd4b5bd37f010f2c3dc6e770827693d">&#9670;&nbsp;</a></span>Mod()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;uint exp, uint man&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a> <a class="el" href="classttmath_1_1_big.html">ttmath::Big</a>&lt; exp, man &gt;::Mod </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classttmath_1_1_big.html">Big</a>&lt; exp, man &gt; &amp;&#160;</td>
          <td class="paramname"><em>ss2</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>caltulate the remainder from a division</p>
<p>samples</p><ul>
<li>12.6 mod 3 = 0.6 because 12.6 = 3*4 + 0.6</li>
<li>-12.6 mod 3 = -0.6 bacause -12.6 = 3*(-4) + (-0.6)</li>
<li>12.6 mod -3 = 0.6</li>
<li>-12.6 mod -3 = -0.6</li>
</ul>
<p>in other words: this(old) = ss2 * q + this(new)</p>
<p>return value:</p><ul>
<li>0 - ok</li>
<li>1 - carry</li>
<li>2 - improper argument (ss2 is zero) </li>
</ul>

<p class="definition">Definition at line <a class="el" href="ttmathbig_8h_source.html#l01539">1539</a> of file <a class="el" href="ttmathbig_8h_source.html">ttmathbig.h</a>.</p>
<div class="fragment"><div class="line"><a name="l01540"></a><span class="lineno"> 1540</span>&#160;    {</div><div class="line"><a name="l01541"></a><span class="lineno"> 1541</span>&#160;        <span class="keywordflow">if</span>( <span class="keyword">this</span> == &amp;ss2 )</div><div class="line"><a name="l01542"></a><span class="lineno"> 1542</span>&#160;        {</div><div class="line"><a name="l01543"></a><span class="lineno"> 1543</span>&#160;            Big&lt;exp, man&gt; copy_ss2(ss2);</div><div class="line"><a name="l01544"></a><span class="lineno"> 1544</span>&#160;            <span class="keywordflow">return</span> ModRef(copy_ss2);</div><div class="line"><a name="l01545"></a><span class="lineno"> 1545</span>&#160;        }</div><div class="line"><a name="l01546"></a><span class="lineno"> 1546</span>&#160;        <span class="keywordflow">else</span></div><div class="line"><a name="l01547"></a><span class="lineno"> 1547</span>&#160;        {</div><div class="line"><a name="l01548"></a><span class="lineno"> 1548</span>&#160;            <span class="keywordflow">return</span> ModRef(ss2);</div><div class="line"><a name="l01549"></a><span class="lineno"> 1549</span>&#160;        }</div><div class="line"><a name="l01550"></a><span class="lineno"> 1550</span>&#160;    }</div></div><!-- fragment -->
</div>
</div>
<a id="ab60bb059c684494fd91bb9d257ebd9c6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab60bb059c684494fd91bb9d257ebd9c6">&#9670;&nbsp;</a></span>Mod2()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;uint exp, uint man&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a> <a class="el" href="classttmath_1_1_big.html">ttmath::Big</a>&lt; exp, man &gt;::Mod2 </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>this method returns: 'this' mod 2 (either zero or one)</p>
<p>this method is much faster than using Mod( object_with_value_two ) </p>

<p class="definition">Definition at line <a class="el" href="ttmathbig_8h_source.html#l01559">1559</a> of file <a class="el" href="ttmathbig_8h_source.html">ttmathbig.h</a>.</p>
<div class="fragment"><div class="line"><a name="l01560"></a><span class="lineno"> 1560</span>&#160;    {</div><div class="line"><a name="l01561"></a><span class="lineno"> 1561</span>&#160;        <span class="keywordflow">if</span>( exponent&gt;<a class="code" href="namespacettmath.html#a4b0a5dcba29a2c7a0abc8b4403a25ac4">sint</a>(0) || exponent&lt;=-<a class="code" href="namespacettmath.html#a4b0a5dcba29a2c7a0abc8b4403a25ac4">sint</a>(man*<a class="code" href="ttmathtypes_8h.html#aef936ab7a0d7f0c34a9a794b3072cf6a">TTMATH_BITS_PER_UINT</a>) )</div><div class="line"><a name="l01562"></a><span class="lineno"> 1562</span>&#160;            <span class="keywordflow">return</span> 0;</div><div class="line"><a name="l01563"></a><span class="lineno"> 1563</span>&#160;</div><div class="line"><a name="l01564"></a><span class="lineno"> 1564</span>&#160;        <a class="code" href="namespacettmath.html#a4b0a5dcba29a2c7a0abc8b4403a25ac4">sint</a> exp_int = exponent.<a class="code" href="classttmath_1_1_int.html#af934f141ffee622c5b19edc661d2d76f">ToInt</a>();</div><div class="line"><a name="l01565"></a><span class="lineno"> 1565</span>&#160;        <span class="comment">// &#39;exp_int&#39; is negative (or zero), we set it as positive</span></div><div class="line"><a name="l01566"></a><span class="lineno"> 1566</span>&#160;        exp_int = -exp_int;</div><div class="line"><a name="l01567"></a><span class="lineno"> 1567</span>&#160;</div><div class="line"><a name="l01568"></a><span class="lineno"> 1568</span>&#160;    <span class="keywordflow">return</span> mantissa.<a class="code" href="classttmath_1_1_u_int.html#a9cee17c474838e4d58d55e4c8524fdb7">GetBit</a>(exp_int);</div><div class="line"><a name="l01569"></a><span class="lineno"> 1569</span>&#160;    }</div><div class="ttc" id="ttmathtypes_8h_html_aef936ab7a0d7f0c34a9a794b3072cf6a"><div class="ttname"><a href="ttmathtypes_8h.html#aef936ab7a0d7f0c34a9a794b3072cf6a">TTMATH_BITS_PER_UINT</a></div><div class="ttdeci">#define TTMATH_BITS_PER_UINT</div><div class="ttdef"><b>Definition:</b> <a href="ttmathtypes_8h_source.html#l00253">ttmathtypes.h:253</a></div></div>
<div class="ttc" id="classttmath_1_1_u_int_html_a9cee17c474838e4d58d55e4c8524fdb7"><div class="ttname"><a href="classttmath_1_1_u_int.html#a9cee17c474838e4d58d55e4c8524fdb7">ttmath::UInt::GetBit</a></div><div class="ttdeci">uint GetBit(uint bit_index) const</div><div class="ttdef"><b>Definition:</b> <a href="ttmathuint_8h_source.html#l00706">ttmathuint.h:706</a></div></div>
<div class="ttc" id="namespacettmath_html_a4b0a5dcba29a2c7a0abc8b4403a25ac4"><div class="ttname"><a href="namespacettmath.html#a4b0a5dcba29a2c7a0abc8b4403a25ac4">ttmath::sint</a></div><div class="ttdeci">int64_t sint</div><div class="ttdef"><b>Definition:</b> <a href="ttmathtypes_8h_source.html#l00243">ttmathtypes.h:243</a></div></div>
<div class="ttc" id="classttmath_1_1_int_html_af934f141ffee622c5b19edc661d2d76f"><div class="ttname"><a href="classttmath_1_1_int.html#af934f141ffee622c5b19edc661d2d76f">ttmath::Int::ToInt</a></div><div class="ttdeci">sint ToInt() const</div><div class="ttdef"><b>Definition:</b> <a href="ttmathint_8h_source.html#l01132">ttmathint.h:1132</a></div></div>
</div><!-- fragment -->
<p class="reference">References <a class="el" href="ttmathuint_8h_source.html#l00706">ttmath::UInt&lt; value_size &gt;::GetBit()</a>, <a class="el" href="ttmathint_8h_source.html#l01132">ttmath::Int&lt; value_size &gt;::ToInt()</a>, and <a class="el" href="ttmathtypes_8h_source.html#l00253">TTMATH_BITS_PER_UINT</a>.</p>

<p class="reference">Referenced by <a class="el" href="ttmathbig_8h_source.html#l01675">ttmath::Big&lt; exp, man &gt;::PowUInt()</a>.</p>

</div>
</div>
<a id="a77d542e9f74a0bb8b93847a92c024c47"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a77d542e9f74a0bb8b93847a92c024c47">&#9670;&nbsp;</a></span>Mul()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;uint exp, uint man&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a> <a class="el" href="classttmath_1_1_big.html">ttmath::Big</a>&lt; exp, man &gt;::Mul </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classttmath_1_1_big.html">Big</a>&lt; exp, man &gt; &amp;&#160;</td>
          <td class="paramname"><em>ss2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>round</em> = <code>true</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>multiplication this = this * ss2 this method returns a carry </p>

<p class="definition">Definition at line <a class="el" href="ttmathbig_8h_source.html#l01373">1373</a> of file <a class="el" href="ttmathbig_8h_source.html">ttmathbig.h</a>.</p>
<div class="fragment"><div class="line"><a name="l01374"></a><span class="lineno"> 1374</span>&#160;    {</div><div class="line"><a name="l01375"></a><span class="lineno"> 1375</span>&#160;        <span class="keywordflow">if</span>( <span class="keyword">this</span> == &amp;ss2 )</div><div class="line"><a name="l01376"></a><span class="lineno"> 1376</span>&#160;        {</div><div class="line"><a name="l01377"></a><span class="lineno"> 1377</span>&#160;            Big&lt;exp, man&gt; copy_ss2(ss2);</div><div class="line"><a name="l01378"></a><span class="lineno"> 1378</span>&#160;            <span class="keywordflow">return</span> MulRef(copy_ss2, round);</div><div class="line"><a name="l01379"></a><span class="lineno"> 1379</span>&#160;        }</div><div class="line"><a name="l01380"></a><span class="lineno"> 1380</span>&#160;        <span class="keywordflow">else</span></div><div class="line"><a name="l01381"></a><span class="lineno"> 1381</span>&#160;        {</div><div class="line"><a name="l01382"></a><span class="lineno"> 1382</span>&#160;            <span class="keywordflow">return</span> MulRef(ss2, round);</div><div class="line"><a name="l01383"></a><span class="lineno"> 1383</span>&#160;        }</div><div class="line"><a name="l01384"></a><span class="lineno"> 1384</span>&#160;    }</div></div><!-- fragment -->
<p class="reference">Referenced by <a class="el" href="ttmathbig_8h_source.html#l01966">ttmath::Big&lt; exp, man &gt;::Exp()</a>, <a class="el" href="ttmathbig_8h_source.html#l02144">ttmath::Big&lt; exp, man &gt;::Ln()</a>, <a class="el" href="ttmathbig_8h_source.html#l01584">ttmath::Big&lt; exp, man &gt;::Pow()</a>, <a class="el" href="ttmathbig_8h_source.html#l01767">ttmath::Big&lt; exp, man &gt;::PowFrac()</a>, <a class="el" href="ttmathbig_8h_source.html#l01675">ttmath::Big&lt; exp, man &gt;::PowUInt()</a>, and <a class="el" href="ttmathbig_8h_source.html#l01835">ttmath::Big&lt; exp, man &gt;::Sqrt()</a>.</p>

</div>
</div>
<a id="a2287eb7f44b7483d93ffb32e490d4987"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2287eb7f44b7483d93ffb32e490d4987">&#9670;&nbsp;</a></span>MulInt()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;uint exp, uint man&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a> <a class="el" href="classttmath_1_1_big.html">ttmath::Big</a>&lt; exp, man &gt;::MulInt </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="namespacettmath.html#a4b0a5dcba29a2c7a0abc8b4403a25ac4">sint</a>&#160;</td>
          <td class="paramname"><em>ss2</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Multiplication this = this * ss2 (ss2 is sint)</p>
<p>ss2 with a sign </p>

<p class="definition">Definition at line <a class="el" href="ttmathbig_8h_source.html#l01233">1233</a> of file <a class="el" href="ttmathbig_8h_source.html">ttmathbig.h</a>.</p>
<div class="fragment"><div class="line"><a name="l01234"></a><span class="lineno"> 1234</span>&#160;    {</div><div class="line"><a name="l01235"></a><span class="lineno"> 1235</span>&#160;        <span class="keywordflow">if</span>( <a class="code" href="classttmath_1_1_big.html#a7575e10d9fff2f301a66bb05ab472111">IsNan</a>() )</div><div class="line"><a name="l01236"></a><span class="lineno"> 1236</span>&#160;            <span class="keywordflow">return</span> 1;</div><div class="line"><a name="l01237"></a><span class="lineno"> 1237</span>&#160;</div><div class="line"><a name="l01238"></a><span class="lineno"> 1238</span>&#160;        <span class="keywordflow">if</span>( ss2 == 0 )</div><div class="line"><a name="l01239"></a><span class="lineno"> 1239</span>&#160;        {</div><div class="line"><a name="l01240"></a><span class="lineno"> 1240</span>&#160;            <a class="code" href="classttmath_1_1_big.html#a1b5980e7d66c1a6bcfe55d85eccb1821">SetZero</a>();</div><div class="line"><a name="l01241"></a><span class="lineno"> 1241</span>&#160;            <span class="keywordflow">return</span> 0;</div><div class="line"><a name="l01242"></a><span class="lineno"> 1242</span>&#160;        }</div><div class="line"><a name="l01243"></a><span class="lineno"> 1243</span>&#160;</div><div class="line"><a name="l01244"></a><span class="lineno"> 1244</span>&#160;        <span class="keywordflow">if</span>( <a class="code" href="classttmath_1_1_big.html#a00cdfa94cc491487709a3f1356fd0a14">IsZero</a>() )</div><div class="line"><a name="l01245"></a><span class="lineno"> 1245</span>&#160;            <span class="keywordflow">return</span> 0;</div><div class="line"><a name="l01246"></a><span class="lineno"> 1246</span>&#160;</div><div class="line"><a name="l01247"></a><span class="lineno"> 1247</span>&#160;        <span class="keywordflow">if</span>( <a class="code" href="classttmath_1_1_big.html#ac8f89807eb1878d93d76fe609f4a6b42">IsSign</a>() == (ss2&lt;0) )</div><div class="line"><a name="l01248"></a><span class="lineno"> 1248</span>&#160;        {</div><div class="line"><a name="l01249"></a><span class="lineno"> 1249</span>&#160;            <span class="comment">// the signs are the same (both are either - or +), the result is positive</span></div><div class="line"><a name="l01250"></a><span class="lineno"> 1250</span>&#160;            <a class="code" href="classttmath_1_1_big.html#a9e3548dd8473d8dc8bf2fa03b13059e2">Abs</a>();</div><div class="line"><a name="l01251"></a><span class="lineno"> 1251</span>&#160;        }</div><div class="line"><a name="l01252"></a><span class="lineno"> 1252</span>&#160;        <span class="keywordflow">else</span></div><div class="line"><a name="l01253"></a><span class="lineno"> 1253</span>&#160;        {</div><div class="line"><a name="l01254"></a><span class="lineno"> 1254</span>&#160;            <span class="comment">// the signs are different, the result is negative</span></div><div class="line"><a name="l01255"></a><span class="lineno"> 1255</span>&#160;            <a class="code" href="classttmath_1_1_big.html#a3486d67def6959bd98ee590649c4d1c1">SetSign</a>();</div><div class="line"><a name="l01256"></a><span class="lineno"> 1256</span>&#160;        }</div><div class="line"><a name="l01257"></a><span class="lineno"> 1257</span>&#160;</div><div class="line"><a name="l01258"></a><span class="lineno"> 1258</span>&#160;        <span class="keywordflow">if</span>( ss2&lt;0 )</div><div class="line"><a name="l01259"></a><span class="lineno"> 1259</span>&#160;            ss2 = -ss2;</div><div class="line"><a name="l01260"></a><span class="lineno"> 1260</span>&#160;</div><div class="line"><a name="l01261"></a><span class="lineno"> 1261</span>&#160;</div><div class="line"><a name="l01262"></a><span class="lineno"> 1262</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="classttmath_1_1_big.html#a096173e99072ed2ef2dc52071c6b4b7a">MulUInt</a>( <a class="code" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a>(ss2) );</div><div class="line"><a name="l01263"></a><span class="lineno"> 1263</span>&#160;    }</div><div class="ttc" id="classttmath_1_1_big_html_ac8f89807eb1878d93d76fe609f4a6b42"><div class="ttname"><a href="classttmath_1_1_big.html#ac8f89807eb1878d93d76fe609f4a6b42">ttmath::Big::IsSign</a></div><div class="ttdeci">bool IsSign() const</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l00658">ttmathbig.h:658</a></div></div>
<div class="ttc" id="classttmath_1_1_big_html_a3486d67def6959bd98ee590649c4d1c1"><div class="ttname"><a href="classttmath_1_1_big.html#a3486d67def6959bd98ee590649c4d1c1">ttmath::Big::SetSign</a></div><div class="ttdeci">void SetSign()</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l00726">ttmathbig.h:726</a></div></div>
<div class="ttc" id="classttmath_1_1_big_html_a9e3548dd8473d8dc8bf2fa03b13059e2"><div class="ttname"><a href="classttmath_1_1_big.html#a9e3548dd8473d8dc8bf2fa03b13059e2">ttmath::Big::Abs</a></div><div class="ttdeci">void Abs()</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l00682">ttmathbig.h:682</a></div></div>
<div class="ttc" id="classttmath_1_1_big_html_a00cdfa94cc491487709a3f1356fd0a14"><div class="ttname"><a href="classttmath_1_1_big.html#a00cdfa94cc491487709a3f1356fd0a14">ttmath::Big::IsZero</a></div><div class="ttdeci">bool IsZero() const</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l00648">ttmathbig.h:648</a></div></div>
<div class="ttc" id="classttmath_1_1_big_html_a7575e10d9fff2f301a66bb05ab472111"><div class="ttname"><a href="classttmath_1_1_big.html#a7575e10d9fff2f301a66bb05ab472111">ttmath::Big::IsNan</a></div><div class="ttdeci">bool IsNan() const</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l00667">ttmathbig.h:667</a></div></div>
<div class="ttc" id="classttmath_1_1_big_html_a096173e99072ed2ef2dc52071c6b4b7a"><div class="ttname"><a href="classttmath_1_1_big.html#a096173e99072ed2ef2dc52071c6b4b7a">ttmath::Big::MulUInt</a></div><div class="ttdeci">uint MulUInt(uint ss2)</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l01179">ttmathbig.h:1179</a></div></div>
<div class="ttc" id="namespacettmath_html_a5c1fccc9761aaa3d2b6dd32c224f5dac"><div class="ttname"><a href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">ttmath::uint</a></div><div class="ttdeci">uint64_t uint</div><div class="ttdef"><b>Definition:</b> <a href="ttmathtypes_8h_source.html#l00238">ttmathtypes.h:238</a></div></div>
<div class="ttc" id="classttmath_1_1_big_html_a1b5980e7d66c1a6bcfe55d85eccb1821"><div class="ttname"><a href="classttmath_1_1_big.html#a1b5980e7d66c1a6bcfe55d85eccb1821">ttmath::Big::SetZero</a></div><div class="ttdeci">void SetZero()</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l00256">ttmathbig.h:256</a></div></div>
</div><!-- fragment -->
<p class="reference">References <a class="el" href="ttmathbig_8h_source.html#l00682">ttmath::Big&lt; exp, man &gt;::Abs()</a>, <a class="el" href="ttmathbig_8h_source.html#l00667">ttmath::Big&lt; exp, man &gt;::IsNan()</a>, <a class="el" href="ttmathbig_8h_source.html#l00658">ttmath::Big&lt; exp, man &gt;::IsSign()</a>, <a class="el" href="ttmathbig_8h_source.html#l00648">ttmath::Big&lt; exp, man &gt;::IsZero()</a>, <a class="el" href="ttmathbig_8h_source.html#l01179">ttmath::Big&lt; exp, man &gt;::MulUInt()</a>, <a class="el" href="ttmathbig_8h_source.html#l00726">ttmath::Big&lt; exp, man &gt;::SetSign()</a>, and <a class="el" href="ttmathbig_8h_source.html#l00256">ttmath::Big&lt; exp, man &gt;::SetZero()</a>.</p>

</div>
</div>
<a id="a096173e99072ed2ef2dc52071c6b4b7a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a096173e99072ed2ef2dc52071c6b4b7a">&#9670;&nbsp;</a></span>MulUInt()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;uint exp, uint man&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a> <a class="el" href="classttmath_1_1_big.html">ttmath::Big</a>&lt; exp, man &gt;::MulUInt </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a>&#160;</td>
          <td class="paramname"><em>ss2</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Multiplication this = this * ss2 (ss2 is uint)</p>
<p>ss2 without a sign </p>

<p class="definition">Definition at line <a class="el" href="ttmathbig_8h_source.html#l01179">1179</a> of file <a class="el" href="ttmathbig_8h_source.html">ttmathbig.h</a>.</p>
<div class="fragment"><div class="line"><a name="l01180"></a><span class="lineno"> 1180</span>&#160;    {</div><div class="line"><a name="l01181"></a><span class="lineno"> 1181</span>&#160;    UInt&lt;man+1&gt; man_result;</div><div class="line"><a name="l01182"></a><span class="lineno"> 1182</span>&#160;    <a class="code" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a> i,c = 0;</div><div class="line"><a name="l01183"></a><span class="lineno"> 1183</span>&#160;</div><div class="line"><a name="l01184"></a><span class="lineno"> 1184</span>&#160;        <span class="keywordflow">if</span>( <a class="code" href="classttmath_1_1_big.html#a7575e10d9fff2f301a66bb05ab472111">IsNan</a>() )</div><div class="line"><a name="l01185"></a><span class="lineno"> 1185</span>&#160;            <span class="keywordflow">return</span> 1;</div><div class="line"><a name="l01186"></a><span class="lineno"> 1186</span>&#160;</div><div class="line"><a name="l01187"></a><span class="lineno"> 1187</span>&#160;        <span class="keywordflow">if</span>( <a class="code" href="classttmath_1_1_big.html#a00cdfa94cc491487709a3f1356fd0a14">IsZero</a>() )</div><div class="line"><a name="l01188"></a><span class="lineno"> 1188</span>&#160;            <span class="keywordflow">return</span> 0;</div><div class="line"><a name="l01189"></a><span class="lineno"> 1189</span>&#160;</div><div class="line"><a name="l01190"></a><span class="lineno"> 1190</span>&#160;        <span class="keywordflow">if</span>( ss2 == 0 )</div><div class="line"><a name="l01191"></a><span class="lineno"> 1191</span>&#160;        {</div><div class="line"><a name="l01192"></a><span class="lineno"> 1192</span>&#160;            <a class="code" href="classttmath_1_1_big.html#a1b5980e7d66c1a6bcfe55d85eccb1821">SetZero</a>();</div><div class="line"><a name="l01193"></a><span class="lineno"> 1193</span>&#160;            <span class="keywordflow">return</span> 0;</div><div class="line"><a name="l01194"></a><span class="lineno"> 1194</span>&#160;        }</div><div class="line"><a name="l01195"></a><span class="lineno"> 1195</span>&#160;</div><div class="line"><a name="l01196"></a><span class="lineno"> 1196</span>&#160;        <span class="comment">// man_result = mantissa * ss2.mantissa</span></div><div class="line"><a name="l01197"></a><span class="lineno"> 1197</span>&#160;        mantissa.<a class="code" href="classttmath_1_1_u_int.html#a47b57350163b4dc79e480995fc044ad7">MulInt</a>(ss2, man_result);</div><div class="line"><a name="l01198"></a><span class="lineno"> 1198</span>&#160;</div><div class="line"><a name="l01199"></a><span class="lineno"> 1199</span>&#160;        <a class="code" href="namespacettmath.html#a4b0a5dcba29a2c7a0abc8b4403a25ac4">sint</a> bit = UInt&lt;man&gt;::FindLeadingBitInWord(man_result.table[man]); <span class="comment">// man - last word</span></div><div class="line"><a name="l01200"></a><span class="lineno"> 1200</span>&#160;        </div><div class="line"><a name="l01201"></a><span class="lineno"> 1201</span>&#160;        <span class="keywordflow">if</span>( bit!=-1 &amp;&amp; <a class="code" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a>(bit) &gt; (<a class="code" href="ttmathtypes_8h.html#aef936ab7a0d7f0c34a9a794b3072cf6a">TTMATH_BITS_PER_UINT</a>/2) )</div><div class="line"><a name="l01202"></a><span class="lineno"> 1202</span>&#160;        {</div><div class="line"><a name="l01203"></a><span class="lineno"> 1203</span>&#160;            <span class="comment">// &#39;i&#39; will be from 0 to TTMATH_BITS_PER_UINT</span></div><div class="line"><a name="l01204"></a><span class="lineno"> 1204</span>&#160;            i = man_result.CompensationToLeft();</div><div class="line"><a name="l01205"></a><span class="lineno"> 1205</span>&#160;            c = exponent.<a class="code" href="classttmath_1_1_int.html#a34a2cf4362d6b66b0c3f00f94e4c3b4b">Add</a>( <a class="code" href="ttmathtypes_8h.html#aef936ab7a0d7f0c34a9a794b3072cf6a">TTMATH_BITS_PER_UINT</a> - i );</div><div class="line"><a name="l01206"></a><span class="lineno"> 1206</span>&#160;</div><div class="line"><a name="l01207"></a><span class="lineno"> 1207</span>&#160;            <span class="keywordflow">for</span>(i=0 ; i&lt;man ; ++i)</div><div class="line"><a name="l01208"></a><span class="lineno"> 1208</span>&#160;                mantissa.<a class="code" href="classttmath_1_1_u_int.html#a54c67e2e3d1a4d6ea96e828d15c4443a">table</a>[i] = man_result.table[i+1];</div><div class="line"><a name="l01209"></a><span class="lineno"> 1209</span>&#160;        }</div><div class="line"><a name="l01210"></a><span class="lineno"> 1210</span>&#160;        <span class="keywordflow">else</span></div><div class="line"><a name="l01211"></a><span class="lineno"> 1211</span>&#160;        {</div><div class="line"><a name="l01212"></a><span class="lineno"> 1212</span>&#160;            <span class="keywordflow">if</span>( bit != -1 )</div><div class="line"><a name="l01213"></a><span class="lineno"> 1213</span>&#160;            {</div><div class="line"><a name="l01214"></a><span class="lineno"> 1214</span>&#160;                man_result.Rcr(bit+1, 0);</div><div class="line"><a name="l01215"></a><span class="lineno"> 1215</span>&#160;                c += exponent.<a class="code" href="classttmath_1_1_int.html#a34a2cf4362d6b66b0c3f00f94e4c3b4b">Add</a>(bit+1);</div><div class="line"><a name="l01216"></a><span class="lineno"> 1216</span>&#160;            }</div><div class="line"><a name="l01217"></a><span class="lineno"> 1217</span>&#160;</div><div class="line"><a name="l01218"></a><span class="lineno"> 1218</span>&#160;            <span class="keywordflow">for</span>(i=0 ; i&lt;man ; ++i)</div><div class="line"><a name="l01219"></a><span class="lineno"> 1219</span>&#160;                mantissa.<a class="code" href="classttmath_1_1_u_int.html#a54c67e2e3d1a4d6ea96e828d15c4443a">table</a>[i] = man_result.table[i];</div><div class="line"><a name="l01220"></a><span class="lineno"> 1220</span>&#160;        }</div><div class="line"><a name="l01221"></a><span class="lineno"> 1221</span>&#160;</div><div class="line"><a name="l01222"></a><span class="lineno"> 1222</span>&#160;        c += <a class="code" href="classttmath_1_1_big.html#aedc4abe8e1d984289b41830e9a1d67fb">Standardizing</a>();</div><div class="line"><a name="l01223"></a><span class="lineno"> 1223</span>&#160;</div><div class="line"><a name="l01224"></a><span class="lineno"> 1224</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="classttmath_1_1_big.html#a0681595612114e8ab1dc9c8f3e8590e7">CheckCarry</a>(c);</div><div class="line"><a name="l01225"></a><span class="lineno"> 1225</span>&#160;    }</div><div class="ttc" id="classttmath_1_1_big_html_a0681595612114e8ab1dc9c8f3e8590e7"><div class="ttname"><a href="classttmath_1_1_big.html#a0681595612114e8ab1dc9c8f3e8590e7">ttmath::Big::CheckCarry</a></div><div class="ttdeci">uint CheckCarry(uint c)</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l00121">ttmathbig.h:121</a></div></div>
<div class="ttc" id="classttmath_1_1_u_int_html_a54c67e2e3d1a4d6ea96e828d15c4443a"><div class="ttname"><a href="classttmath_1_1_u_int.html#a54c67e2e3d1a4d6ea96e828d15c4443a">ttmath::UInt::table</a></div><div class="ttdeci">uint table[value_size]</div><div class="ttdef"><b>Definition:</b> <a href="ttmathuint_8h_source.html#l00081">ttmathuint.h:81</a></div></div>
<div class="ttc" id="classttmath_1_1_u_int_html_a47b57350163b4dc79e480995fc044ad7"><div class="ttname"><a href="classttmath_1_1_u_int.html#a47b57350163b4dc79e480995fc044ad7">ttmath::UInt::MulInt</a></div><div class="ttdeci">uint MulInt(uint ss2)</div><div class="ttdef"><b>Definition:</b> <a href="ttmathuint_8h_source.html#l00835">ttmathuint.h:835</a></div></div>
<div class="ttc" id="classttmath_1_1_big_html_a00cdfa94cc491487709a3f1356fd0a14"><div class="ttname"><a href="classttmath_1_1_big.html#a00cdfa94cc491487709a3f1356fd0a14">ttmath::Big::IsZero</a></div><div class="ttdeci">bool IsZero() const</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l00648">ttmathbig.h:648</a></div></div>
<div class="ttc" id="classttmath_1_1_big_html_a7575e10d9fff2f301a66bb05ab472111"><div class="ttname"><a href="classttmath_1_1_big.html#a7575e10d9fff2f301a66bb05ab472111">ttmath::Big::IsNan</a></div><div class="ttdeci">bool IsNan() const</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l00667">ttmathbig.h:667</a></div></div>
<div class="ttc" id="classttmath_1_1_int_html_a34a2cf4362d6b66b0c3f00f94e4c3b4b"><div class="ttname"><a href="classttmath_1_1_int.html#a34a2cf4362d6b66b0c3f00f94e4c3b4b">ttmath::Int::Add</a></div><div class="ttdeci">uint Add(const Int&lt; value_size &gt; &amp;ss2)</div><div class="ttdef"><b>Definition:</b> <a href="ttmathint_8h_source.html#l00220">ttmathint.h:220</a></div></div>
<div class="ttc" id="ttmathtypes_8h_html_aef936ab7a0d7f0c34a9a794b3072cf6a"><div class="ttname"><a href="ttmathtypes_8h.html#aef936ab7a0d7f0c34a9a794b3072cf6a">TTMATH_BITS_PER_UINT</a></div><div class="ttdeci">#define TTMATH_BITS_PER_UINT</div><div class="ttdef"><b>Definition:</b> <a href="ttmathtypes_8h_source.html#l00253">ttmathtypes.h:253</a></div></div>
<div class="ttc" id="classttmath_1_1_big_html_aedc4abe8e1d984289b41830e9a1d67fb"><div class="ttname"><a href="classttmath_1_1_big.html#aedc4abe8e1d984289b41830e9a1d67fb">ttmath::Big::Standardizing</a></div><div class="ttdeci">uint Standardizing()</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l00173">ttmathbig.h:173</a></div></div>
<div class="ttc" id="namespacettmath_html_a4b0a5dcba29a2c7a0abc8b4403a25ac4"><div class="ttname"><a href="namespacettmath.html#a4b0a5dcba29a2c7a0abc8b4403a25ac4">ttmath::sint</a></div><div class="ttdeci">int64_t sint</div><div class="ttdef"><b>Definition:</b> <a href="ttmathtypes_8h_source.html#l00243">ttmathtypes.h:243</a></div></div>
<div class="ttc" id="namespacettmath_html_a5c1fccc9761aaa3d2b6dd32c224f5dac"><div class="ttname"><a href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">ttmath::uint</a></div><div class="ttdeci">uint64_t uint</div><div class="ttdef"><b>Definition:</b> <a href="ttmathtypes_8h_source.html#l00238">ttmathtypes.h:238</a></div></div>
<div class="ttc" id="classttmath_1_1_big_html_a1b5980e7d66c1a6bcfe55d85eccb1821"><div class="ttname"><a href="classttmath_1_1_big.html#a1b5980e7d66c1a6bcfe55d85eccb1821">ttmath::Big::SetZero</a></div><div class="ttdeci">void SetZero()</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l00256">ttmathbig.h:256</a></div></div>
</div><!-- fragment -->
<p class="reference">References <a class="el" href="ttmathint_8h_source.html#l00220">ttmath::Int&lt; value_size &gt;::Add()</a>, <a class="el" href="ttmathbig_8h_source.html#l00121">ttmath::Big&lt; exp, man &gt;::CheckCarry()</a>, <a class="el" href="ttmathuint_8h_source.html#l00598">ttmath::UInt&lt; value_size &gt;::CompensationToLeft()</a>, <a class="el" href="ttmathbig_8h_source.html#l00667">ttmath::Big&lt; exp, man &gt;::IsNan()</a>, <a class="el" href="ttmathbig_8h_source.html#l00648">ttmath::Big&lt; exp, man &gt;::IsZero()</a>, <a class="el" href="ttmathuint_8h_source.html#l00835">ttmath::UInt&lt; value_size &gt;::MulInt()</a>, <a class="el" href="ttmathuint_8h_source.html#l00555">ttmath::UInt&lt; value_size &gt;::Rcr()</a>, <a class="el" href="ttmathbig_8h_source.html#l00256">ttmath::Big&lt; exp, man &gt;::SetZero()</a>, <a class="el" href="ttmathbig_8h_source.html#l00173">ttmath::Big&lt; exp, man &gt;::Standardizing()</a>, <a class="el" href="ttmathuint_8h_source.html#l00081">ttmath::UInt&lt; value_size &gt;::table</a>, and <a class="el" href="ttmathtypes_8h_source.html#l00253">TTMATH_BITS_PER_UINT</a>.</p>

<p class="reference">Referenced by <a class="el" href="ttmathbig_8h_source.html#l01233">ttmath::Big&lt; exp, man &gt;::MulInt()</a>.</p>

</div>
</div>
<a id="a9e15cbcd6ebc80d00887fea7396c77d5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9e15cbcd6ebc80d00887fea7396c77d5">&#9670;&nbsp;</a></span>operator &amp;()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;uint exp, uint man&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classttmath_1_1_big.html">Big</a>&lt;exp,man&gt; <a class="el" href="classttmath_1_1_big.html">ttmath::Big</a>&lt; exp, man &gt;::operator &amp; </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classttmath_1_1_big.html">Big</a>&lt; exp, man &gt; &amp;&#160;</td>
          <td class="paramname"><em>p2</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>bitwise operators (we do not define bitwise not) </p>

<p class="definition">Definition at line <a class="el" href="ttmathbig_8h_source.html#l05739">5739</a> of file <a class="el" href="ttmathbig_8h_source.html">ttmathbig.h</a>.</p>
<div class="fragment"><div class="line"><a name="l05740"></a><span class="lineno"> 5740</span>&#160;    {</div><div class="line"><a name="l05741"></a><span class="lineno"> 5741</span>&#160;        Big&lt;exp,man&gt; temp( *<span class="keyword">this</span> );</div><div class="line"><a name="l05742"></a><span class="lineno"> 5742</span>&#160;</div><div class="line"><a name="l05743"></a><span class="lineno"> 5743</span>&#160;        temp.BitAnd(p2);</div><div class="line"><a name="l05744"></a><span class="lineno"> 5744</span>&#160;</div><div class="line"><a name="l05745"></a><span class="lineno"> 5745</span>&#160;    <span class="keywordflow">return</span> temp;</div><div class="line"><a name="l05746"></a><span class="lineno"> 5746</span>&#160;    }</div></div><!-- fragment -->
<p class="reference">References <a class="el" href="ttmathbig_8h_source.html#l01002">ttmath::Big&lt; exp, man &gt;::BitAnd()</a>.</p>

</div>
</div>
<a id="ac26abc00889171efdd2afa61454567c9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac26abc00889171efdd2afa61454567c9">&#9670;&nbsp;</a></span>operator++() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;uint exp, uint man&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classttmath_1_1_big.html">Big</a>&lt;exp,man&gt;&amp; <a class="el" href="classttmath_1_1_big.html">ttmath::Big</a>&lt; exp, man &gt;::operator++ </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Prefix operator e.g ++variable </p>

<p class="definition">Definition at line <a class="el" href="ttmathbig_8h_source.html#l05692">5692</a> of file <a class="el" href="ttmathbig_8h_source.html">ttmathbig.h</a>.</p>
<div class="fragment"><div class="line"><a name="l05693"></a><span class="lineno"> 5693</span>&#160;    {</div><div class="line"><a name="l05694"></a><span class="lineno"> 5694</span>&#160;        AddOne();</div><div class="line"><a name="l05695"></a><span class="lineno"> 5695</span>&#160;</div><div class="line"><a name="l05696"></a><span class="lineno"> 5696</span>&#160;    <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div><div class="line"><a name="l05697"></a><span class="lineno"> 5697</span>&#160;    }</div></div><!-- fragment -->
</div>
</div>
<a id="ac60dd6aef7757f1232477a89b41edae8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac60dd6aef7757f1232477a89b41edae8">&#9670;&nbsp;</a></span>operator++() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;uint exp, uint man&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classttmath_1_1_big.html">Big</a>&lt;exp,man&gt; <a class="el" href="classttmath_1_1_big.html">ttmath::Big</a>&lt; exp, man &gt;::operator++ </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Postfix operator e.g variable++ </p>

<p class="definition">Definition at line <a class="el" href="ttmathbig_8h_source.html#l05703">5703</a> of file <a class="el" href="ttmathbig_8h_source.html">ttmathbig.h</a>.</p>
<div class="fragment"><div class="line"><a name="l05704"></a><span class="lineno"> 5704</span>&#160;    {</div><div class="line"><a name="l05705"></a><span class="lineno"> 5705</span>&#160;    Big&lt;exp,man&gt; temp( *<span class="keyword">this</span> );</div><div class="line"><a name="l05706"></a><span class="lineno"> 5706</span>&#160;</div><div class="line"><a name="l05707"></a><span class="lineno"> 5707</span>&#160;        AddOne();</div><div class="line"><a name="l05708"></a><span class="lineno"> 5708</span>&#160;</div><div class="line"><a name="l05709"></a><span class="lineno"> 5709</span>&#160;    <span class="keywordflow">return</span> temp;</div><div class="line"><a name="l05710"></a><span class="lineno"> 5710</span>&#160;    }</div></div><!-- fragment -->
</div>
</div>
<a id="aaf5468225cd5060bf2e3a31532933a72"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aaf5468225cd5060bf2e3a31532933a72">&#9670;&nbsp;</a></span>operator-()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;uint exp, uint man&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classttmath_1_1_big.html">Big</a>&lt;exp,man&gt; <a class="el" href="classttmath_1_1_big.html">ttmath::Big</a>&lt; exp, man &gt;::operator- </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>standard mathematical operators</p>
<p>an operator for changing the sign</p>
<p>this method is not changing 'this' but the changed value is returned </p>

<p class="definition">Definition at line <a class="el" href="ttmathbig_8h_source.html#l05608">5608</a> of file <a class="el" href="ttmathbig_8h_source.html">ttmathbig.h</a>.</p>
<div class="fragment"><div class="line"><a name="l05609"></a><span class="lineno"> 5609</span>&#160;    {</div><div class="line"><a name="l05610"></a><span class="lineno"> 5610</span>&#160;        Big&lt;exp,man&gt; temp(*<span class="keyword">this</span>);</div><div class="line"><a name="l05611"></a><span class="lineno"> 5611</span>&#160;</div><div class="line"><a name="l05612"></a><span class="lineno"> 5612</span>&#160;        temp.ChangeSign();</div><div class="line"><a name="l05613"></a><span class="lineno"> 5613</span>&#160;</div><div class="line"><a name="l05614"></a><span class="lineno"> 5614</span>&#160;    <span class="keywordflow">return</span> temp;</div><div class="line"><a name="l05615"></a><span class="lineno"> 5615</span>&#160;    }</div></div><!-- fragment -->
<p class="reference">References <a class="el" href="ttmathbig_8h_source.html#l00740">ttmath::Big&lt; exp, man &gt;::ChangeSign()</a>.</p>

</div>
</div>
<a id="ae2818bdfc2f236628a17c9585c594ca4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae2818bdfc2f236628a17c9585c594ca4">&#9670;&nbsp;</a></span>operator=() <span class="overload">[1/14]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;uint exp, uint man&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classttmath_1_1_big.html">Big</a>&lt;exp, man&gt;&amp; <a class="el" href="classttmath_1_1_big.html">ttmath::Big</a>&lt; exp, man &gt;::operator= </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="namespacettmath.html#a4b0a5dcba29a2c7a0abc8b4403a25ac4">sint</a>&#160;</td>
          <td class="paramname"><em>value</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>an operator= for converting 'sint' to this class </p>

<p class="definition">Definition at line <a class="el" href="ttmathbig_8h_source.html#l03119">3119</a> of file <a class="el" href="ttmathbig_8h_source.html">ttmathbig.h</a>.</p>
<div class="fragment"><div class="line"><a name="l03120"></a><span class="lineno"> 3120</span>&#160;    {</div><div class="line"><a name="l03121"></a><span class="lineno"> 3121</span>&#160;        <a class="code" href="classttmath_1_1_big.html#a56a6fff11059c5acd4e20cbb01f321c3">FromInt</a>(value);</div><div class="line"><a name="l03122"></a><span class="lineno"> 3122</span>&#160;</div><div class="line"><a name="l03123"></a><span class="lineno"> 3123</span>&#160;    <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div><div class="line"><a name="l03124"></a><span class="lineno"> 3124</span>&#160;    }</div><div class="ttc" id="classttmath_1_1_big_html_a56a6fff11059c5acd4e20cbb01f321c3"><div class="ttname"><a href="classttmath_1_1_big.html#a56a6fff11059c5acd4e20cbb01f321c3">ttmath::Big::FromInt</a></div><div class="ttdeci">uint FromInt(uint value)</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l02564">ttmathbig.h:2564</a></div></div>
</div><!-- fragment -->
<p class="reference">References <a class="el" href="ttmathbig_8h_source.html#l02564">ttmath::Big&lt; exp, man &gt;::FromInt()</a>.</p>

<p class="reference">Referenced by <a class="el" href="ttmathbig_8h_source.html#l03699">ttmath::Big&lt; exp, man &gt;::Big()</a>.</p>

</div>
</div>
<a id="a71d39cd10c72a302dc3f786b76a4b790"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a71d39cd10c72a302dc3f786b76a4b790">&#9670;&nbsp;</a></span>operator=() <span class="overload">[2/14]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;uint exp, uint man&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classttmath_1_1_big.html">Big</a>&lt;exp, man&gt;&amp; <a class="el" href="classttmath_1_1_big.html">ttmath::Big</a>&lt; exp, man &gt;::operator= </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a>&#160;</td>
          <td class="paramname"><em>value</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>an operator= for converting 'uint' to this class </p>

<p class="definition">Definition at line <a class="el" href="ttmathbig_8h_source.html#l03130">3130</a> of file <a class="el" href="ttmathbig_8h_source.html">ttmathbig.h</a>.</p>
<div class="fragment"><div class="line"><a name="l03131"></a><span class="lineno"> 3131</span>&#160;    {</div><div class="line"><a name="l03132"></a><span class="lineno"> 3132</span>&#160;        <a class="code" href="classttmath_1_1_big.html#acae9e6888929068aecc5cca01126d3c5">FromUInt</a>(value);</div><div class="line"><a name="l03133"></a><span class="lineno"> 3133</span>&#160;</div><div class="line"><a name="l03134"></a><span class="lineno"> 3134</span>&#160;    <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div><div class="line"><a name="l03135"></a><span class="lineno"> 3135</span>&#160;    }</div><div class="ttc" id="classttmath_1_1_big_html_acae9e6888929068aecc5cca01126d3c5"><div class="ttname"><a href="classttmath_1_1_big.html#acae9e6888929068aecc5cca01126d3c5">ttmath::Big::FromUInt</a></div><div class="ttdeci">uint FromUInt(uint value)</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l02538">ttmathbig.h:2538</a></div></div>
</div><!-- fragment -->
<p class="reference">References <a class="el" href="ttmathbig_8h_source.html#l02538">ttmath::Big&lt; exp, man &gt;::FromUInt()</a>.</p>

</div>
</div>
<a id="ab5fd85926cbbebae5b5ccfe5249a446b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab5fd85926cbbebae5b5ccfe5249a446b">&#9670;&nbsp;</a></span>operator=() <span class="overload">[3/14]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;uint exp, uint man&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classttmath_1_1_big.html">Big</a>&lt;exp, man&gt;&amp; <a class="el" href="classttmath_1_1_big.html">ttmath::Big</a>&lt; exp, man &gt;::operator= </td>
          <td>(</td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>value</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>an operator= for converting 'float' to this class </p>

<p class="definition">Definition at line <a class="el" href="ttmathbig_8h_source.html#l03141">3141</a> of file <a class="el" href="ttmathbig_8h_source.html">ttmathbig.h</a>.</p>
<div class="fragment"><div class="line"><a name="l03142"></a><span class="lineno"> 3142</span>&#160;    {</div><div class="line"><a name="l03143"></a><span class="lineno"> 3143</span>&#160;        <a class="code" href="classttmath_1_1_big.html#a448d79907dbc27e897d0f6c55ecde0b4">FromFloat</a>(value);</div><div class="line"><a name="l03144"></a><span class="lineno"> 3144</span>&#160;</div><div class="line"><a name="l03145"></a><span class="lineno"> 3145</span>&#160;    <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div><div class="line"><a name="l03146"></a><span class="lineno"> 3146</span>&#160;    }</div><div class="ttc" id="classttmath_1_1_big_html_a448d79907dbc27e897d0f6c55ecde0b4"><div class="ttname"><a href="classttmath_1_1_big.html#a448d79907dbc27e897d0f6c55ecde0b4">ttmath::Big::FromFloat</a></div><div class="ttdeci">uint FromFloat(float value)</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l02833">ttmathbig.h:2833</a></div></div>
</div><!-- fragment -->
<p class="reference">References <a class="el" href="ttmathbig_8h_source.html#l02833">ttmath::Big&lt; exp, man &gt;::FromFloat()</a>.</p>

</div>
</div>
<a id="a90668305264d2c305bb0642f353da519"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a90668305264d2c305bb0642f353da519">&#9670;&nbsp;</a></span>operator=() <span class="overload">[4/14]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;uint exp, uint man&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classttmath_1_1_big.html">Big</a>&lt;exp, man&gt;&amp; <a class="el" href="classttmath_1_1_big.html">ttmath::Big</a>&lt; exp, man &gt;::operator= </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>value</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>an operator= for converting 'double' to this class </p>

<p class="definition">Definition at line <a class="el" href="ttmathbig_8h_source.html#l03152">3152</a> of file <a class="el" href="ttmathbig_8h_source.html">ttmathbig.h</a>.</p>
<div class="fragment"><div class="line"><a name="l03153"></a><span class="lineno"> 3153</span>&#160;    {</div><div class="line"><a name="l03154"></a><span class="lineno"> 3154</span>&#160;        <a class="code" href="classttmath_1_1_big.html#afd218703bd13ea24e9fe09398d826247">FromDouble</a>(value);</div><div class="line"><a name="l03155"></a><span class="lineno"> 3155</span>&#160;</div><div class="line"><a name="l03156"></a><span class="lineno"> 3156</span>&#160;    <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div><div class="line"><a name="l03157"></a><span class="lineno"> 3157</span>&#160;    }</div><div class="ttc" id="classttmath_1_1_big_html_afd218703bd13ea24e9fe09398d826247"><div class="ttname"><a href="classttmath_1_1_big.html#afd218703bd13ea24e9fe09398d826247">ttmath::Big::FromDouble</a></div><div class="ttdeci">uint FromDouble(double value)</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l02736">ttmathbig.h:2736</a></div></div>
</div><!-- fragment -->
<p class="reference">References <a class="el" href="ttmathbig_8h_source.html#l02736">ttmath::Big&lt; exp, man &gt;::FromDouble()</a>.</p>

</div>
</div>
<a id="ac641d85a2570d13d2520a88ba62d8f6e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac641d85a2570d13d2520a88ba62d8f6e">&#9670;&nbsp;</a></span>operator=() <span class="overload">[5/14]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;uint exp, uint man&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classttmath_1_1_big.html">Big</a>&lt;exp, man&gt;&amp; <a class="el" href="classttmath_1_1_big.html">ttmath::Big</a>&lt; exp, man &gt;::operator= </td>
          <td>(</td>
          <td class="paramtype">unsigned int&#160;</td>
          <td class="paramname"><em>value</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>an operator= for converting 32 bit unsigned int to this class this operator is created only on a 64bit platform*** </p>

<p class="definition">Definition at line <a class="el" href="ttmathbig_8h_source.html#l03458">3458</a> of file <a class="el" href="ttmathbig_8h_source.html">ttmathbig.h</a>.</p>
<div class="fragment"><div class="line"><a name="l03459"></a><span class="lineno"> 3459</span>&#160;    {</div><div class="line"><a name="l03460"></a><span class="lineno"> 3460</span>&#160;        <a class="code" href="classttmath_1_1_big.html#acae9e6888929068aecc5cca01126d3c5">FromUInt</a>(value);</div><div class="line"><a name="l03461"></a><span class="lineno"> 3461</span>&#160;</div><div class="line"><a name="l03462"></a><span class="lineno"> 3462</span>&#160;    <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div><div class="line"><a name="l03463"></a><span class="lineno"> 3463</span>&#160;    }</div><div class="ttc" id="classttmath_1_1_big_html_acae9e6888929068aecc5cca01126d3c5"><div class="ttname"><a href="classttmath_1_1_big.html#acae9e6888929068aecc5cca01126d3c5">ttmath::Big::FromUInt</a></div><div class="ttdeci">uint FromUInt(uint value)</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l02538">ttmathbig.h:2538</a></div></div>
</div><!-- fragment -->
<p class="reference">References <a class="el" href="ttmathbig_8h_source.html#l02538">ttmath::Big&lt; exp, man &gt;::FromUInt()</a>.</p>

</div>
</div>
<a id="abc832a11bd8421f42ee93c29b52f04b9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abc832a11bd8421f42ee93c29b52f04b9">&#9670;&nbsp;</a></span>operator=() <span class="overload">[6/14]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;uint exp, uint man&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classttmath_1_1_big.html">Big</a>&lt;exp, man&gt;&amp; <a class="el" href="classttmath_1_1_big.html">ttmath::Big</a>&lt; exp, man &gt;::operator= </td>
          <td>(</td>
          <td class="paramtype">signed int&#160;</td>
          <td class="paramname"><em>value</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>an operator for converting 32 bit signed int to this class this operator is created only on a 64bit platform*** </p>

<p class="definition">Definition at line <a class="el" href="ttmathbig_8h_source.html#l03480">3480</a> of file <a class="el" href="ttmathbig_8h_source.html">ttmathbig.h</a>.</p>
<div class="fragment"><div class="line"><a name="l03481"></a><span class="lineno"> 3481</span>&#160;    {</div><div class="line"><a name="l03482"></a><span class="lineno"> 3482</span>&#160;        <a class="code" href="classttmath_1_1_big.html#a56a6fff11059c5acd4e20cbb01f321c3">FromInt</a>(value);</div><div class="line"><a name="l03483"></a><span class="lineno"> 3483</span>&#160;</div><div class="line"><a name="l03484"></a><span class="lineno"> 3484</span>&#160;    <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div><div class="line"><a name="l03485"></a><span class="lineno"> 3485</span>&#160;    }</div><div class="ttc" id="classttmath_1_1_big_html_a56a6fff11059c5acd4e20cbb01f321c3"><div class="ttname"><a href="classttmath_1_1_big.html#a56a6fff11059c5acd4e20cbb01f321c3">ttmath::Big::FromInt</a></div><div class="ttdeci">uint FromInt(uint value)</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l02564">ttmathbig.h:2564</a></div></div>
</div><!-- fragment -->
<p class="reference">References <a class="el" href="ttmathbig_8h_source.html#l02564">ttmath::Big&lt; exp, man &gt;::FromInt()</a>.</p>

</div>
</div>
<a id="a111c5f0706fdbb30d2c1c83340e9563d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a111c5f0706fdbb30d2c1c83340e9563d">&#9670;&nbsp;</a></span>operator=() <span class="overload">[7/14]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;uint exp, uint man&gt; </div>
<div class="memtemplate">
template&lt;uint int_size&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classttmath_1_1_big.html">Big</a>&lt;exp,man&gt;&amp; <a class="el" href="classttmath_1_1_big.html">ttmath::Big</a>&lt; exp, man &gt;::operator= </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classttmath_1_1_int.html">Int</a>&lt; int_size &gt; &amp;&#160;</td>
          <td class="paramname"><em>value</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>an operator= for converting from 'Int&lt;int_size&gt;' to this class </p>

<p class="definition">Definition at line <a class="el" href="ttmathbig_8h_source.html#l03586">3586</a> of file <a class="el" href="ttmathbig_8h_source.html">ttmathbig.h</a>.</p>
<div class="fragment"><div class="line"><a name="l03587"></a><span class="lineno"> 3587</span>&#160;    {</div><div class="line"><a name="l03588"></a><span class="lineno"> 3588</span>&#160;        <a class="code" href="classttmath_1_1_big.html#a56a6fff11059c5acd4e20cbb01f321c3">FromInt</a>(value);</div><div class="line"><a name="l03589"></a><span class="lineno"> 3589</span>&#160;</div><div class="line"><a name="l03590"></a><span class="lineno"> 3590</span>&#160;    <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div><div class="line"><a name="l03591"></a><span class="lineno"> 3591</span>&#160;    }</div><div class="ttc" id="classttmath_1_1_big_html_a56a6fff11059c5acd4e20cbb01f321c3"><div class="ttname"><a href="classttmath_1_1_big.html#a56a6fff11059c5acd4e20cbb01f321c3">ttmath::Big::FromInt</a></div><div class="ttdeci">uint FromInt(uint value)</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l02564">ttmathbig.h:2564</a></div></div>
</div><!-- fragment -->
<p class="reference">References <a class="el" href="ttmathbig_8h_source.html#l02564">ttmath::Big&lt; exp, man &gt;::FromInt()</a>.</p>

</div>
</div>
<a id="a1f87240330d286478cbb1a80f857bbaf"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1f87240330d286478cbb1a80f857bbaf">&#9670;&nbsp;</a></span>operator=() <span class="overload">[8/14]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;uint exp, uint man&gt; </div>
<div class="memtemplate">
template&lt;uint int_size&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classttmath_1_1_big.html">Big</a>&lt;exp,man&gt;&amp; <a class="el" href="classttmath_1_1_big.html">ttmath::Big</a>&lt; exp, man &gt;::operator= </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classttmath_1_1_u_int.html">UInt</a>&lt; int_size &gt; &amp;&#160;</td>
          <td class="paramname"><em>value</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>an operator= for converting from 'UInt&lt;int_size&gt;' to this class </p>

<p class="definition">Definition at line <a class="el" href="ttmathbig_8h_source.html#l03608">3608</a> of file <a class="el" href="ttmathbig_8h_source.html">ttmathbig.h</a>.</p>
<div class="fragment"><div class="line"><a name="l03609"></a><span class="lineno"> 3609</span>&#160;    {</div><div class="line"><a name="l03610"></a><span class="lineno"> 3610</span>&#160;        <a class="code" href="classttmath_1_1_big.html#acae9e6888929068aecc5cca01126d3c5">FromUInt</a>(value);</div><div class="line"><a name="l03611"></a><span class="lineno"> 3611</span>&#160;</div><div class="line"><a name="l03612"></a><span class="lineno"> 3612</span>&#160;    <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div><div class="line"><a name="l03613"></a><span class="lineno"> 3613</span>&#160;    }</div><div class="ttc" id="classttmath_1_1_big_html_acae9e6888929068aecc5cca01126d3c5"><div class="ttname"><a href="classttmath_1_1_big.html#acae9e6888929068aecc5cca01126d3c5">ttmath::Big::FromUInt</a></div><div class="ttdeci">uint FromUInt(uint value)</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l02538">ttmathbig.h:2538</a></div></div>
</div><!-- fragment -->
<p class="reference">References <a class="el" href="ttmathbig_8h_source.html#l02538">ttmath::Big&lt; exp, man &gt;::FromUInt()</a>.</p>

</div>
</div>
<a id="ab448e5aab3cd9ec3cba573cba2a0ec9f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab448e5aab3cd9ec3cba573cba2a0ec9f">&#9670;&nbsp;</a></span>operator=() <span class="overload">[9/14]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;uint exp, uint man&gt; </div>
<div class="memtemplate">
template&lt;uint another_exp, uint another_man&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classttmath_1_1_big.html">Big</a>&lt;exp,man&gt;&amp; <a class="el" href="classttmath_1_1_big.html">ttmath::Big</a>&lt; exp, man &gt;::operator= </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classttmath_1_1_big.html">Big</a>&lt; another_exp, another_man &gt; &amp;&#160;</td>
          <td class="paramname"><em>value</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>an operator= for converting from 'Big&lt;another_exp, another_man&gt;' to this class </p>

<p class="definition">Definition at line <a class="el" href="ttmathbig_8h_source.html#l03630">3630</a> of file <a class="el" href="ttmathbig_8h_source.html">ttmathbig.h</a>.</p>
<div class="fragment"><div class="line"><a name="l03631"></a><span class="lineno"> 3631</span>&#160;    {</div><div class="line"><a name="l03632"></a><span class="lineno"> 3632</span>&#160;        <a class="code" href="classttmath_1_1_big.html#a961c89a45552dfac6d4a47e6e6d21106">FromBig</a>(value);</div><div class="line"><a name="l03633"></a><span class="lineno"> 3633</span>&#160;</div><div class="line"><a name="l03634"></a><span class="lineno"> 3634</span>&#160;    <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div><div class="line"><a name="l03635"></a><span class="lineno"> 3635</span>&#160;    }</div><div class="ttc" id="classttmath_1_1_big_html_a961c89a45552dfac6d4a47e6e6d21106"><div class="ttname"><a href="classttmath_1_1_big.html#a961c89a45552dfac6d4a47e6e6d21106">ttmath::Big::FromBig</a></div><div class="ttdeci">uint FromBig(const Big&lt; another_exp, another_man &gt; &amp;another)</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l02240">ttmathbig.h:2240</a></div></div>
</div><!-- fragment -->
<p class="reference">References <a class="el" href="ttmathbig_8h_source.html#l02240">ttmath::Big&lt; exp, man &gt;::FromBig()</a>.</p>

</div>
</div>
<a id="a1e9f5ae0f964d6492b6201d8c8b9e445"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1e9f5ae0f964d6492b6201d8c8b9e445">&#9670;&nbsp;</a></span>operator=() <span class="overload">[10/14]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;uint exp, uint man&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classttmath_1_1_big.html">Big</a>&lt;exp,man&gt;&amp; <a class="el" href="classttmath_1_1_big.html">ttmath::Big</a>&lt; exp, man &gt;::operator= </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classttmath_1_1_big.html">Big</a>&lt; exp, man &gt; &amp;&#160;</td>
          <td class="paramname"><em>value</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>the default assignment operator </p>

<p class="definition">Definition at line <a class="el" href="ttmathbig_8h_source.html#l03685">3685</a> of file <a class="el" href="ttmathbig_8h_source.html">ttmathbig.h</a>.</p>
<div class="fragment"><div class="line"><a name="l03686"></a><span class="lineno"> 3686</span>&#160;    {</div><div class="line"><a name="l03687"></a><span class="lineno"> 3687</span>&#160;        info     = value.info;</div><div class="line"><a name="l03688"></a><span class="lineno"> 3688</span>&#160;        exponent = value.exponent;</div><div class="line"><a name="l03689"></a><span class="lineno"> 3689</span>&#160;        mantissa = value.mantissa;</div><div class="line"><a name="l03690"></a><span class="lineno"> 3690</span>&#160;</div><div class="line"><a name="l03691"></a><span class="lineno"> 3691</span>&#160;    <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div><div class="line"><a name="l03692"></a><span class="lineno"> 3692</span>&#160;    }</div></div><!-- fragment -->
</div>
</div>
<a id="abbd06a120afabc0e96daf310ed430e53"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abbd06a120afabc0e96daf310ed430e53">&#9670;&nbsp;</a></span>operator=() <span class="overload">[11/14]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;uint exp, uint man&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classttmath_1_1_big.html">Big</a>&lt;exp, man&gt;&amp; <a class="el" href="classttmath_1_1_big.html">ttmath::Big</a>&lt; exp, man &gt;::operator= </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>string</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>an operator= for converting a string into its value </p>

<p class="definition">Definition at line <a class="el" href="ttmathbig_8h_source.html#l05339">5339</a> of file <a class="el" href="ttmathbig_8h_source.html">ttmathbig.h</a>.</p>
<div class="fragment"><div class="line"><a name="l05340"></a><span class="lineno"> 5340</span>&#160;    {</div><div class="line"><a name="l05341"></a><span class="lineno"> 5341</span>&#160;        <a class="code" href="classttmath_1_1_big.html#acaf20ea76a22aa1717976fc5c415994b">FromString</a>( <span class="keywordtype">string</span> );</div><div class="line"><a name="l05342"></a><span class="lineno"> 5342</span>&#160;</div><div class="line"><a name="l05343"></a><span class="lineno"> 5343</span>&#160;    <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div><div class="line"><a name="l05344"></a><span class="lineno"> 5344</span>&#160;    }</div><div class="ttc" id="classttmath_1_1_big_html_acaf20ea76a22aa1717976fc5c415994b"><div class="ttname"><a href="classttmath_1_1_big.html#acaf20ea76a22aa1717976fc5c415994b">ttmath::Big::FromString</a></div><div class="ttdeci">uint FromString(const char *source, uint base=10, const char **after_source=0, bool *value_read=0)</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l04949">ttmathbig.h:4949</a></div></div>
</div><!-- fragment -->
<p class="reference">References <a class="el" href="ttmathbig_8h_source.html#l04949">ttmath::Big&lt; exp, man &gt;::FromString()</a>.</p>

</div>
</div>
<a id="a50c6e79d63ff6ee2a72a27f0e98121c4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a50c6e79d63ff6ee2a72a27f0e98121c4">&#9670;&nbsp;</a></span>operator=() <span class="overload">[12/14]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;uint exp, uint man&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classttmath_1_1_big.html">Big</a>&lt;exp, man&gt;&amp; <a class="el" href="classttmath_1_1_big.html">ttmath::Big</a>&lt; exp, man &gt;::operator= </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>string</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>an operator= for converting a string into its value </p>

<p class="definition">Definition at line <a class="el" href="ttmathbig_8h_source.html#l05350">5350</a> of file <a class="el" href="ttmathbig_8h_source.html">ttmathbig.h</a>.</p>
<div class="fragment"><div class="line"><a name="l05351"></a><span class="lineno"> 5351</span>&#160;    {</div><div class="line"><a name="l05352"></a><span class="lineno"> 5352</span>&#160;        <a class="code" href="classttmath_1_1_big.html#acaf20ea76a22aa1717976fc5c415994b">FromString</a>( <span class="keywordtype">string</span>.c_str() );</div><div class="line"><a name="l05353"></a><span class="lineno"> 5353</span>&#160;</div><div class="line"><a name="l05354"></a><span class="lineno"> 5354</span>&#160;    <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div><div class="line"><a name="l05355"></a><span class="lineno"> 5355</span>&#160;    }</div><div class="ttc" id="classttmath_1_1_big_html_acaf20ea76a22aa1717976fc5c415994b"><div class="ttname"><a href="classttmath_1_1_big.html#acaf20ea76a22aa1717976fc5c415994b">ttmath::Big::FromString</a></div><div class="ttdeci">uint FromString(const char *source, uint base=10, const char **after_source=0, bool *value_read=0)</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l04949">ttmathbig.h:4949</a></div></div>
</div><!-- fragment -->
<p class="reference">References <a class="el" href="ttmathbig_8h_source.html#l04949">ttmath::Big&lt; exp, man &gt;::FromString()</a>.</p>

</div>
</div>
<a id="aa42b85559280aa8565268423b95a5f0a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa42b85559280aa8565268423b95a5f0a">&#9670;&nbsp;</a></span>operator=() <span class="overload">[13/14]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;uint exp, uint man&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classttmath_1_1_big.html">Big</a>&lt;exp, man&gt;&amp; <a class="el" href="classttmath_1_1_big.html">ttmath::Big</a>&lt; exp, man &gt;::operator= </td>
          <td>(</td>
          <td class="paramtype">const wchar_t *&#160;</td>
          <td class="paramname"><em>string</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>an operator= for converting a string into its value </p>

<p class="definition">Definition at line <a class="el" href="ttmathbig_8h_source.html#l05382">5382</a> of file <a class="el" href="ttmathbig_8h_source.html">ttmathbig.h</a>.</p>
<div class="fragment"><div class="line"><a name="l05383"></a><span class="lineno"> 5383</span>&#160;    {</div><div class="line"><a name="l05384"></a><span class="lineno"> 5384</span>&#160;        <a class="code" href="classttmath_1_1_big.html#acaf20ea76a22aa1717976fc5c415994b">FromString</a>( <span class="keywordtype">string</span> );</div><div class="line"><a name="l05385"></a><span class="lineno"> 5385</span>&#160;</div><div class="line"><a name="l05386"></a><span class="lineno"> 5386</span>&#160;    <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div><div class="line"><a name="l05387"></a><span class="lineno"> 5387</span>&#160;    }</div><div class="ttc" id="classttmath_1_1_big_html_acaf20ea76a22aa1717976fc5c415994b"><div class="ttname"><a href="classttmath_1_1_big.html#acaf20ea76a22aa1717976fc5c415994b">ttmath::Big::FromString</a></div><div class="ttdeci">uint FromString(const char *source, uint base=10, const char **after_source=0, bool *value_read=0)</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l04949">ttmathbig.h:4949</a></div></div>
</div><!-- fragment -->
<p class="reference">References <a class="el" href="ttmathbig_8h_source.html#l04949">ttmath::Big&lt; exp, man &gt;::FromString()</a>.</p>

</div>
</div>
<a id="a72fb088166c205c7c7e6b85d3f8773de"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a72fb088166c205c7c7e6b85d3f8773de">&#9670;&nbsp;</a></span>operator=() <span class="overload">[14/14]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;uint exp, uint man&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classttmath_1_1_big.html">Big</a>&lt;exp, man&gt;&amp; <a class="el" href="classttmath_1_1_big.html">ttmath::Big</a>&lt; exp, man &gt;::operator= </td>
          <td>(</td>
          <td class="paramtype">const std::wstring &amp;&#160;</td>
          <td class="paramname"><em>string</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>an operator= for converting a string into its value </p>

<p class="definition">Definition at line <a class="el" href="ttmathbig_8h_source.html#l05393">5393</a> of file <a class="el" href="ttmathbig_8h_source.html">ttmathbig.h</a>.</p>
<div class="fragment"><div class="line"><a name="l05394"></a><span class="lineno"> 5394</span>&#160;    {</div><div class="line"><a name="l05395"></a><span class="lineno"> 5395</span>&#160;        <a class="code" href="classttmath_1_1_big.html#acaf20ea76a22aa1717976fc5c415994b">FromString</a>( <span class="keywordtype">string</span>.c_str() );</div><div class="line"><a name="l05396"></a><span class="lineno"> 5396</span>&#160;</div><div class="line"><a name="l05397"></a><span class="lineno"> 5397</span>&#160;    <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div><div class="line"><a name="l05398"></a><span class="lineno"> 5398</span>&#160;    }</div><div class="ttc" id="classttmath_1_1_big_html_acaf20ea76a22aa1717976fc5c415994b"><div class="ttname"><a href="classttmath_1_1_big.html#acaf20ea76a22aa1717976fc5c415994b">ttmath::Big::FromString</a></div><div class="ttdeci">uint FromString(const char *source, uint base=10, const char **after_source=0, bool *value_read=0)</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l04949">ttmathbig.h:4949</a></div></div>
</div><!-- fragment -->
<p class="reference">References <a class="el" href="ttmathbig_8h_source.html#l04949">ttmath::Big&lt; exp, man &gt;::FromString()</a>.</p>

</div>
</div>
<a id="a04e13b29e821c17842c19e6fa8339037"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a04e13b29e821c17842c19e6fa8339037">&#9670;&nbsp;</a></span>Pow() <span class="overload">[1/3]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;uint exp, uint man&gt; </div>
<div class="memtemplate">
template&lt;uint pow_size&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a> <a class="el" href="classttmath_1_1_big.html">ttmath::Big</a>&lt; exp, man &gt;::Pow </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classttmath_1_1_u_int.html">UInt</a>&lt; pow_size &gt;&#160;</td>
          <td class="paramname"><em>pow</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>power this = this ^ pow (pow without a sign)</p>
<p>binary algorithm (r-to-l)</p>
<p>return values:</p><ul>
<li>0 - ok</li>
<li>1 - carry</li>
<li>2 - incorrect arguments (0^0) </li>
</ul>

<p class="definition">Definition at line <a class="el" href="ttmathbig_8h_source.html#l01584">1584</a> of file <a class="el" href="ttmathbig_8h_source.html">ttmathbig.h</a>.</p>
<div class="fragment"><div class="line"><a name="l01585"></a><span class="lineno"> 1585</span>&#160;    {</div><div class="line"><a name="l01586"></a><span class="lineno"> 1586</span>&#160;        <span class="keywordflow">if</span>( <a class="code" href="classttmath_1_1_big.html#a7575e10d9fff2f301a66bb05ab472111">IsNan</a>() )</div><div class="line"><a name="l01587"></a><span class="lineno"> 1587</span>&#160;            <span class="keywordflow">return</span> 1;</div><div class="line"><a name="l01588"></a><span class="lineno"> 1588</span>&#160;</div><div class="line"><a name="l01589"></a><span class="lineno"> 1589</span>&#160;        <span class="keywordflow">if</span>( <a class="code" href="classttmath_1_1_big.html#a00cdfa94cc491487709a3f1356fd0a14">IsZero</a>() )</div><div class="line"><a name="l01590"></a><span class="lineno"> 1590</span>&#160;        {</div><div class="line"><a name="l01591"></a><span class="lineno"> 1591</span>&#160;            <span class="keywordflow">if</span>( pow.IsZero() )</div><div class="line"><a name="l01592"></a><span class="lineno"> 1592</span>&#160;            {</div><div class="line"><a name="l01593"></a><span class="lineno"> 1593</span>&#160;                <span class="comment">// we don&#39;t define zero^zero</span></div><div class="line"><a name="l01594"></a><span class="lineno"> 1594</span>&#160;                <a class="code" href="classttmath_1_1_big.html#a568b91071e386e75dffb0aebdf1c47ec">SetNan</a>();</div><div class="line"><a name="l01595"></a><span class="lineno"> 1595</span>&#160;                <span class="keywordflow">return</span> 2;</div><div class="line"><a name="l01596"></a><span class="lineno"> 1596</span>&#160;            }</div><div class="line"><a name="l01597"></a><span class="lineno"> 1597</span>&#160;</div><div class="line"><a name="l01598"></a><span class="lineno"> 1598</span>&#160;            <span class="comment">// 0^(+something) is zero</span></div><div class="line"><a name="l01599"></a><span class="lineno"> 1599</span>&#160;            <span class="keywordflow">return</span> 0;</div><div class="line"><a name="l01600"></a><span class="lineno"> 1600</span>&#160;        }</div><div class="line"><a name="l01601"></a><span class="lineno"> 1601</span>&#160;</div><div class="line"><a name="l01602"></a><span class="lineno"> 1602</span>&#160;        Big&lt;exp, man&gt; start(*<span class="keyword">this</span>);</div><div class="line"><a name="l01603"></a><span class="lineno"> 1603</span>&#160;        Big&lt;exp, man&gt; result;</div><div class="line"><a name="l01604"></a><span class="lineno"> 1604</span>&#160;        result.SetOne();</div><div class="line"><a name="l01605"></a><span class="lineno"> 1605</span>&#160;        <a class="code" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a> c = 0;</div><div class="line"><a name="l01606"></a><span class="lineno"> 1606</span>&#160;</div><div class="line"><a name="l01607"></a><span class="lineno"> 1607</span>&#160;        <span class="keywordflow">while</span>( !c )</div><div class="line"><a name="l01608"></a><span class="lineno"> 1608</span>&#160;        {</div><div class="line"><a name="l01609"></a><span class="lineno"> 1609</span>&#160;            <span class="keywordflow">if</span>( pow.table[0] &amp; 1 )</div><div class="line"><a name="l01610"></a><span class="lineno"> 1610</span>&#160;                c += result.Mul(start);</div><div class="line"><a name="l01611"></a><span class="lineno"> 1611</span>&#160;</div><div class="line"><a name="l01612"></a><span class="lineno"> 1612</span>&#160;            pow.Rcr(1);</div><div class="line"><a name="l01613"></a><span class="lineno"> 1613</span>&#160;</div><div class="line"><a name="l01614"></a><span class="lineno"> 1614</span>&#160;            <span class="keywordflow">if</span>( pow.IsZero() )</div><div class="line"><a name="l01615"></a><span class="lineno"> 1615</span>&#160;                <span class="keywordflow">break</span>;</div><div class="line"><a name="l01616"></a><span class="lineno"> 1616</span>&#160;</div><div class="line"><a name="l01617"></a><span class="lineno"> 1617</span>&#160;            c += start.Mul(start);</div><div class="line"><a name="l01618"></a><span class="lineno"> 1618</span>&#160;        }</div><div class="line"><a name="l01619"></a><span class="lineno"> 1619</span>&#160;</div><div class="line"><a name="l01620"></a><span class="lineno"> 1620</span>&#160;        *<span class="keyword">this</span> = result;</div><div class="line"><a name="l01621"></a><span class="lineno"> 1621</span>&#160;</div><div class="line"><a name="l01622"></a><span class="lineno"> 1622</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="classttmath_1_1_big.html#a0681595612114e8ab1dc9c8f3e8590e7">CheckCarry</a>(c);</div><div class="line"><a name="l01623"></a><span class="lineno"> 1623</span>&#160;    }</div><div class="ttc" id="classttmath_1_1_big_html_a0681595612114e8ab1dc9c8f3e8590e7"><div class="ttname"><a href="classttmath_1_1_big.html#a0681595612114e8ab1dc9c8f3e8590e7">ttmath::Big::CheckCarry</a></div><div class="ttdeci">uint CheckCarry(uint c)</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l00121">ttmathbig.h:121</a></div></div>
<div class="ttc" id="classttmath_1_1_big_html_a568b91071e386e75dffb0aebdf1c47ec"><div class="ttname"><a href="classttmath_1_1_big.html#a568b91071e386e75dffb0aebdf1c47ec">ttmath::Big::SetNan</a></div><div class="ttdeci">void SetNan()</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l00296">ttmathbig.h:296</a></div></div>
<div class="ttc" id="classttmath_1_1_big_html_a00cdfa94cc491487709a3f1356fd0a14"><div class="ttname"><a href="classttmath_1_1_big.html#a00cdfa94cc491487709a3f1356fd0a14">ttmath::Big::IsZero</a></div><div class="ttdeci">bool IsZero() const</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l00648">ttmathbig.h:648</a></div></div>
<div class="ttc" id="classttmath_1_1_big_html_a7575e10d9fff2f301a66bb05ab472111"><div class="ttname"><a href="classttmath_1_1_big.html#a7575e10d9fff2f301a66bb05ab472111">ttmath::Big::IsNan</a></div><div class="ttdeci">bool IsNan() const</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l00667">ttmathbig.h:667</a></div></div>
<div class="ttc" id="namespacettmath_html_a5c1fccc9761aaa3d2b6dd32c224f5dac"><div class="ttname"><a href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">ttmath::uint</a></div><div class="ttdeci">uint64_t uint</div><div class="ttdef"><b>Definition:</b> <a href="ttmathtypes_8h_source.html#l00238">ttmathtypes.h:238</a></div></div>
</div><!-- fragment -->
<p class="reference">References <a class="el" href="ttmathbig_8h_source.html#l00121">ttmath::Big&lt; exp, man &gt;::CheckCarry()</a>, <a class="el" href="ttmathbig_8h_source.html#l00667">ttmath::Big&lt; exp, man &gt;::IsNan()</a>, <a class="el" href="ttmathbig_8h_source.html#l00648">ttmath::Big&lt; exp, man &gt;::IsZero()</a>, <a class="el" href="ttmathuint_8h_source.html#l02605">ttmath::UInt&lt; value_size &gt;::IsZero()</a>, <a class="el" href="ttmathbig_8h_source.html#l01373">ttmath::Big&lt; exp, man &gt;::Mul()</a>, <a class="el" href="ttmathuint_8h_source.html#l00555">ttmath::UInt&lt; value_size &gt;::Rcr()</a>, <a class="el" href="ttmathbig_8h_source.html#l00296">ttmath::Big&lt; exp, man &gt;::SetNan()</a>, <a class="el" href="ttmathbig_8h_source.html#l00271">ttmath::Big&lt; exp, man &gt;::SetOne()</a>, and <a class="el" href="ttmathuint_8h_source.html#l00081">ttmath::UInt&lt; value_size &gt;::table</a>.</p>

<p class="reference">Referenced by <a class="el" href="ttmathbig_8h_source.html#l01636">ttmath::Big&lt; exp, man &gt;::Pow()</a>.</p>

</div>
</div>
<a id="acd54dedacff08e88e214eaf37cef7bd7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acd54dedacff08e88e214eaf37cef7bd7">&#9670;&nbsp;</a></span>Pow() <span class="overload">[2/3]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;uint exp, uint man&gt; </div>
<div class="memtemplate">
template&lt;uint pow_size&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a> <a class="el" href="classttmath_1_1_big.html">ttmath::Big</a>&lt; exp, man &gt;::Pow </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classttmath_1_1_int.html">Int</a>&lt; pow_size &gt;&#160;</td>
          <td class="paramname"><em>pow</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>power this = this ^ pow p can be negative</p>
<p>return values:</p><ul>
<li>0 - ok</li>
<li>1 - carry</li>
<li>2 - incorrect arguments 0^0 or 0^(-something) </li>
</ul>

<p class="definition">Definition at line <a class="el" href="ttmathbig_8h_source.html#l01636">1636</a> of file <a class="el" href="ttmathbig_8h_source.html">ttmathbig.h</a>.</p>
<div class="fragment"><div class="line"><a name="l01637"></a><span class="lineno"> 1637</span>&#160;    {</div><div class="line"><a name="l01638"></a><span class="lineno"> 1638</span>&#160;        <span class="keywordflow">if</span>( <a class="code" href="classttmath_1_1_big.html#a7575e10d9fff2f301a66bb05ab472111">IsNan</a>() )</div><div class="line"><a name="l01639"></a><span class="lineno"> 1639</span>&#160;            <span class="keywordflow">return</span> 1;</div><div class="line"><a name="l01640"></a><span class="lineno"> 1640</span>&#160;</div><div class="line"><a name="l01641"></a><span class="lineno"> 1641</span>&#160;        <span class="keywordflow">if</span>( !pow.IsSign() )</div><div class="line"><a name="l01642"></a><span class="lineno"> 1642</span>&#160;            <span class="keywordflow">return</span> <a class="code" href="classttmath_1_1_big.html#a04e13b29e821c17842c19e6fa8339037">Pow</a>( UInt&lt;pow_size&gt;(pow) );</div><div class="line"><a name="l01643"></a><span class="lineno"> 1643</span>&#160;</div><div class="line"><a name="l01644"></a><span class="lineno"> 1644</span>&#160;        <span class="keywordflow">if</span>( <a class="code" href="classttmath_1_1_big.html#a00cdfa94cc491487709a3f1356fd0a14">IsZero</a>() )</div><div class="line"><a name="l01645"></a><span class="lineno"> 1645</span>&#160;        {</div><div class="line"><a name="l01646"></a><span class="lineno"> 1646</span>&#160;            <span class="comment">// if &#39;p&#39; is negative then</span></div><div class="line"><a name="l01647"></a><span class="lineno"> 1647</span>&#160;            <span class="comment">// &#39;this&#39; must be different from zero</span></div><div class="line"><a name="l01648"></a><span class="lineno"> 1648</span>&#160;            <a class="code" href="classttmath_1_1_big.html#a568b91071e386e75dffb0aebdf1c47ec">SetNan</a>();</div><div class="line"><a name="l01649"></a><span class="lineno"> 1649</span>&#160;            <span class="keywordflow">return</span> 2;</div><div class="line"><a name="l01650"></a><span class="lineno"> 1650</span>&#160;        }</div><div class="line"><a name="l01651"></a><span class="lineno"> 1651</span>&#160;</div><div class="line"><a name="l01652"></a><span class="lineno"> 1652</span>&#160;        <a class="code" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a> c = pow.ChangeSign();</div><div class="line"><a name="l01653"></a><span class="lineno"> 1653</span>&#160;</div><div class="line"><a name="l01654"></a><span class="lineno"> 1654</span>&#160;        Big&lt;exp, man&gt; t(*<span class="keyword">this</span>);</div><div class="line"><a name="l01655"></a><span class="lineno"> 1655</span>&#160;        c += t.Pow( UInt&lt;pow_size&gt;(pow) ); <span class="comment">// here can only be a carry (return:1)</span></div><div class="line"><a name="l01656"></a><span class="lineno"> 1656</span>&#160;</div><div class="line"><a name="l01657"></a><span class="lineno"> 1657</span>&#160;        <a class="code" href="classttmath_1_1_big.html#a5243a9f27365aa90ef3504fd9e52e476">SetOne</a>();</div><div class="line"><a name="l01658"></a><span class="lineno"> 1658</span>&#160;        c += <a class="code" href="classttmath_1_1_big.html#a57fa951410244551c3449910fe129d64">Div</a>(t);</div><div class="line"><a name="l01659"></a><span class="lineno"> 1659</span>&#160;</div><div class="line"><a name="l01660"></a><span class="lineno"> 1660</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="classttmath_1_1_big.html#a0681595612114e8ab1dc9c8f3e8590e7">CheckCarry</a>(c);</div><div class="line"><a name="l01661"></a><span class="lineno"> 1661</span>&#160;    }</div><div class="ttc" id="classttmath_1_1_big_html_a0681595612114e8ab1dc9c8f3e8590e7"><div class="ttname"><a href="classttmath_1_1_big.html#a0681595612114e8ab1dc9c8f3e8590e7">ttmath::Big::CheckCarry</a></div><div class="ttdeci">uint CheckCarry(uint c)</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l00121">ttmathbig.h:121</a></div></div>
<div class="ttc" id="classttmath_1_1_big_html_a04e13b29e821c17842c19e6fa8339037"><div class="ttname"><a href="classttmath_1_1_big.html#a04e13b29e821c17842c19e6fa8339037">ttmath::Big::Pow</a></div><div class="ttdeci">uint Pow(UInt&lt; pow_size &gt; pow)</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l01584">ttmathbig.h:1584</a></div></div>
<div class="ttc" id="classttmath_1_1_big_html_a568b91071e386e75dffb0aebdf1c47ec"><div class="ttname"><a href="classttmath_1_1_big.html#a568b91071e386e75dffb0aebdf1c47ec">ttmath::Big::SetNan</a></div><div class="ttdeci">void SetNan()</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l00296">ttmathbig.h:296</a></div></div>
<div class="ttc" id="classttmath_1_1_big_html_a5243a9f27365aa90ef3504fd9e52e476"><div class="ttname"><a href="classttmath_1_1_big.html#a5243a9f27365aa90ef3504fd9e52e476">ttmath::Big::SetOne</a></div><div class="ttdeci">void SetOne()</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l00271">ttmathbig.h:271</a></div></div>
<div class="ttc" id="classttmath_1_1_big_html_a57fa951410244551c3449910fe129d64"><div class="ttname"><a href="classttmath_1_1_big.html#a57fa951410244551c3449910fe129d64">ttmath::Big::Div</a></div><div class="ttdeci">uint Div(const Big&lt; exp, man &gt; &amp;ss2, bool round=true)</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l01470">ttmathbig.h:1470</a></div></div>
<div class="ttc" id="classttmath_1_1_big_html_a00cdfa94cc491487709a3f1356fd0a14"><div class="ttname"><a href="classttmath_1_1_big.html#a00cdfa94cc491487709a3f1356fd0a14">ttmath::Big::IsZero</a></div><div class="ttdeci">bool IsZero() const</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l00648">ttmathbig.h:648</a></div></div>
<div class="ttc" id="classttmath_1_1_big_html_a7575e10d9fff2f301a66bb05ab472111"><div class="ttname"><a href="classttmath_1_1_big.html#a7575e10d9fff2f301a66bb05ab472111">ttmath::Big::IsNan</a></div><div class="ttdeci">bool IsNan() const</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l00667">ttmathbig.h:667</a></div></div>
<div class="ttc" id="namespacettmath_html_a5c1fccc9761aaa3d2b6dd32c224f5dac"><div class="ttname"><a href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">ttmath::uint</a></div><div class="ttdeci">uint64_t uint</div><div class="ttdef"><b>Definition:</b> <a href="ttmathtypes_8h_source.html#l00238">ttmathtypes.h:238</a></div></div>
</div><!-- fragment -->
<p class="reference">References <a class="el" href="ttmathint_8h_source.html#l00105">ttmath::Int&lt; value_size &gt;::ChangeSign()</a>, <a class="el" href="ttmathbig_8h_source.html#l00121">ttmath::Big&lt; exp, man &gt;::CheckCarry()</a>, <a class="el" href="ttmathbig_8h_source.html#l01470">ttmath::Big&lt; exp, man &gt;::Div()</a>, <a class="el" href="ttmathbig_8h_source.html#l00667">ttmath::Big&lt; exp, man &gt;::IsNan()</a>, <a class="el" href="ttmathint_8h_source.html#l00156">ttmath::Int&lt; value_size &gt;::IsSign()</a>, <a class="el" href="ttmathbig_8h_source.html#l00648">ttmath::Big&lt; exp, man &gt;::IsZero()</a>, <a class="el" href="ttmathbig_8h_source.html#l01584">ttmath::Big&lt; exp, man &gt;::Pow()</a>, <a class="el" href="ttmathbig_8h_source.html#l00296">ttmath::Big&lt; exp, man &gt;::SetNan()</a>, and <a class="el" href="ttmathbig_8h_source.html#l00271">ttmath::Big&lt; exp, man &gt;::SetOne()</a>.</p>

</div>
</div>
<a id="a5143613c33850b40170b9d5b5c08c5f3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5143613c33850b40170b9d5b5c08c5f3">&#9670;&nbsp;</a></span>Pow() <span class="overload">[3/3]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;uint exp, uint man&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a> <a class="el" href="classttmath_1_1_big.html">ttmath::Big</a>&lt; exp, man &gt;::Pow </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classttmath_1_1_big.html">Big</a>&lt; exp, man &gt; &amp;&#160;</td>
          <td class="paramname"><em>pow</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>power this = this ^ pow pow can be negative and with fraction</p>
<p>return values:</p><ul>
<li>0 - ok</li>
<li>1 - carry</li>
<li>2 - incorrect argument ('this' or 'pow') </li>
</ul>

<p class="definition">Definition at line <a class="el" href="ttmathbig_8h_source.html#l01797">1797</a> of file <a class="el" href="ttmathbig_8h_source.html">ttmathbig.h</a>.</p>
<div class="fragment"><div class="line"><a name="l01798"></a><span class="lineno"> 1798</span>&#160;    {</div><div class="line"><a name="l01799"></a><span class="lineno"> 1799</span>&#160;        <span class="keywordflow">if</span>( <a class="code" href="classttmath_1_1_big.html#a7575e10d9fff2f301a66bb05ab472111">IsNan</a>() || pow.IsNan() )</div><div class="line"><a name="l01800"></a><span class="lineno"> 1800</span>&#160;            <span class="keywordflow">return</span> <a class="code" href="classttmath_1_1_big.html#a0681595612114e8ab1dc9c8f3e8590e7">CheckCarry</a>(1);</div><div class="line"><a name="l01801"></a><span class="lineno"> 1801</span>&#160;</div><div class="line"><a name="l01802"></a><span class="lineno"> 1802</span>&#160;        <span class="keywordflow">if</span>( <a class="code" href="classttmath_1_1_big.html#a00cdfa94cc491487709a3f1356fd0a14">IsZero</a>() )</div><div class="line"><a name="l01803"></a><span class="lineno"> 1803</span>&#160;        {</div><div class="line"><a name="l01804"></a><span class="lineno"> 1804</span>&#160;            <span class="comment">// 0^pow will be 0 only for pow&gt;0</span></div><div class="line"><a name="l01805"></a><span class="lineno"> 1805</span>&#160;            <span class="keywordflow">if</span>( pow.IsSign() || pow.IsZero() )</div><div class="line"><a name="l01806"></a><span class="lineno"> 1806</span>&#160;            {</div><div class="line"><a name="l01807"></a><span class="lineno"> 1807</span>&#160;                <a class="code" href="classttmath_1_1_big.html#a568b91071e386e75dffb0aebdf1c47ec">SetNan</a>();</div><div class="line"><a name="l01808"></a><span class="lineno"> 1808</span>&#160;                <span class="keywordflow">return</span> 2;</div><div class="line"><a name="l01809"></a><span class="lineno"> 1809</span>&#160;            }</div><div class="line"><a name="l01810"></a><span class="lineno"> 1810</span>&#160;</div><div class="line"><a name="l01811"></a><span class="lineno"> 1811</span>&#160;            <a class="code" href="classttmath_1_1_big.html#a1b5980e7d66c1a6bcfe55d85eccb1821">SetZero</a>();</div><div class="line"><a name="l01812"></a><span class="lineno"> 1812</span>&#160;</div><div class="line"><a name="l01813"></a><span class="lineno"> 1813</span>&#160;        <span class="keywordflow">return</span> 0;</div><div class="line"><a name="l01814"></a><span class="lineno"> 1814</span>&#160;        }</div><div class="line"><a name="l01815"></a><span class="lineno"> 1815</span>&#160;</div><div class="line"><a name="l01816"></a><span class="lineno"> 1816</span>&#160;        <span class="keywordflow">if</span>( pow.exponent&gt;-<a class="code" href="namespacettmath.html#a4b0a5dcba29a2c7a0abc8b4403a25ac4">sint</a>(man*<a class="code" href="ttmathtypes_8h.html#aef936ab7a0d7f0c34a9a794b3072cf6a">TTMATH_BITS_PER_UINT</a>) &amp;&amp; pow.exponent&lt;=0 )</div><div class="line"><a name="l01817"></a><span class="lineno"> 1817</span>&#160;        {</div><div class="line"><a name="l01818"></a><span class="lineno"> 1818</span>&#160;            <span class="keywordflow">if</span>( pow.IsInteger() )</div><div class="line"><a name="l01819"></a><span class="lineno"> 1819</span>&#160;                <span class="keywordflow">return</span> <a class="code" href="classttmath_1_1_big.html#a52ea0acdfd8b1ea83073d18aec855a0e">PowInt</a>( pow );</div><div class="line"><a name="l01820"></a><span class="lineno"> 1820</span>&#160;        }</div><div class="line"><a name="l01821"></a><span class="lineno"> 1821</span>&#160;</div><div class="line"><a name="l01822"></a><span class="lineno"> 1822</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="classttmath_1_1_big.html#a0963350876a5d4b23e9c6f1e021cfa2c">PowFrac</a>(pow);</div><div class="line"><a name="l01823"></a><span class="lineno"> 1823</span>&#160;    }</div><div class="ttc" id="classttmath_1_1_big_html_a0963350876a5d4b23e9c6f1e021cfa2c"><div class="ttname"><a href="classttmath_1_1_big.html#a0963350876a5d4b23e9c6f1e021cfa2c">ttmath::Big::PowFrac</a></div><div class="ttdeci">uint PowFrac(const Big&lt; exp, man &gt; &amp;pow)</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l01767">ttmathbig.h:1767</a></div></div>
<div class="ttc" id="classttmath_1_1_big_html_a0681595612114e8ab1dc9c8f3e8590e7"><div class="ttname"><a href="classttmath_1_1_big.html#a0681595612114e8ab1dc9c8f3e8590e7">ttmath::Big::CheckCarry</a></div><div class="ttdeci">uint CheckCarry(uint c)</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l00121">ttmathbig.h:121</a></div></div>
<div class="ttc" id="classttmath_1_1_big_html_a568b91071e386e75dffb0aebdf1c47ec"><div class="ttname"><a href="classttmath_1_1_big.html#a568b91071e386e75dffb0aebdf1c47ec">ttmath::Big::SetNan</a></div><div class="ttdeci">void SetNan()</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l00296">ttmathbig.h:296</a></div></div>
<div class="ttc" id="classttmath_1_1_big_html_a00cdfa94cc491487709a3f1356fd0a14"><div class="ttname"><a href="classttmath_1_1_big.html#a00cdfa94cc491487709a3f1356fd0a14">ttmath::Big::IsZero</a></div><div class="ttdeci">bool IsZero() const</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l00648">ttmathbig.h:648</a></div></div>
<div class="ttc" id="classttmath_1_1_big_html_a7575e10d9fff2f301a66bb05ab472111"><div class="ttname"><a href="classttmath_1_1_big.html#a7575e10d9fff2f301a66bb05ab472111">ttmath::Big::IsNan</a></div><div class="ttdeci">bool IsNan() const</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l00667">ttmathbig.h:667</a></div></div>
<div class="ttc" id="ttmathtypes_8h_html_aef936ab7a0d7f0c34a9a794b3072cf6a"><div class="ttname"><a href="ttmathtypes_8h.html#aef936ab7a0d7f0c34a9a794b3072cf6a">TTMATH_BITS_PER_UINT</a></div><div class="ttdeci">#define TTMATH_BITS_PER_UINT</div><div class="ttdef"><b>Definition:</b> <a href="ttmathtypes_8h_source.html#l00253">ttmathtypes.h:253</a></div></div>
<div class="ttc" id="classttmath_1_1_big_html_a52ea0acdfd8b1ea83073d18aec855a0e"><div class="ttname"><a href="classttmath_1_1_big.html#a52ea0acdfd8b1ea83073d18aec855a0e">ttmath::Big::PowInt</a></div><div class="ttdeci">uint PowInt(const Big&lt; exp, man &gt; &amp;pow)</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l01731">ttmathbig.h:1731</a></div></div>
<div class="ttc" id="namespacettmath_html_a4b0a5dcba29a2c7a0abc8b4403a25ac4"><div class="ttname"><a href="namespacettmath.html#a4b0a5dcba29a2c7a0abc8b4403a25ac4">ttmath::sint</a></div><div class="ttdeci">int64_t sint</div><div class="ttdef"><b>Definition:</b> <a href="ttmathtypes_8h_source.html#l00243">ttmathtypes.h:243</a></div></div>
<div class="ttc" id="classttmath_1_1_big_html_a1b5980e7d66c1a6bcfe55d85eccb1821"><div class="ttname"><a href="classttmath_1_1_big.html#a1b5980e7d66c1a6bcfe55d85eccb1821">ttmath::Big::SetZero</a></div><div class="ttdeci">void SetZero()</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l00256">ttmathbig.h:256</a></div></div>
</div><!-- fragment -->
<p class="reference">References <a class="el" href="ttmathbig_8h_source.html#l00121">ttmath::Big&lt; exp, man &gt;::CheckCarry()</a>, <a class="el" href="ttmathbig_8h_source.html#l05883">ttmath::Big&lt; exp, man &gt;::IsInteger()</a>, <a class="el" href="ttmathbig_8h_source.html#l00667">ttmath::Big&lt; exp, man &gt;::IsNan()</a>, <a class="el" href="ttmathbig_8h_source.html#l00658">ttmath::Big&lt; exp, man &gt;::IsSign()</a>, <a class="el" href="ttmathbig_8h_source.html#l00648">ttmath::Big&lt; exp, man &gt;::IsZero()</a>, <a class="el" href="ttmathbig_8h_source.html#l01767">ttmath::Big&lt; exp, man &gt;::PowFrac()</a>, <a class="el" href="ttmathbig_8h_source.html#l01731">ttmath::Big&lt; exp, man &gt;::PowInt()</a>, <a class="el" href="ttmathbig_8h_source.html#l00296">ttmath::Big&lt; exp, man &gt;::SetNan()</a>, <a class="el" href="ttmathbig_8h_source.html#l00256">ttmath::Big&lt; exp, man &gt;::SetZero()</a>, and <a class="el" href="ttmathtypes_8h_source.html#l00253">TTMATH_BITS_PER_UINT</a>.</p>

</div>
</div>
<a id="a0963350876a5d4b23e9c6f1e021cfa2c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0963350876a5d4b23e9c6f1e021cfa2c">&#9670;&nbsp;</a></span>PowFrac()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;uint exp, uint man&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a> <a class="el" href="classttmath_1_1_big.html">ttmath::Big</a>&lt; exp, man &gt;::PowFrac </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classttmath_1_1_big.html">Big</a>&lt; exp, man &gt; &amp;&#160;</td>
          <td class="paramname"><em>pow</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>power this = this ^ pow this must be greater than zero (this &gt; 0) pow can be negative and with fraction</p>
<p>return values:</p><ul>
<li>0 - ok</li>
<li>1 - carry</li>
<li>2 - incorrect argument ('this' &lt;= 0) </li>
</ul>

<p class="definition">Definition at line <a class="el" href="ttmathbig_8h_source.html#l01767">1767</a> of file <a class="el" href="ttmathbig_8h_source.html">ttmathbig.h</a>.</p>
<div class="fragment"><div class="line"><a name="l01768"></a><span class="lineno"> 1768</span>&#160;    {</div><div class="line"><a name="l01769"></a><span class="lineno"> 1769</span>&#160;        <span class="keywordflow">if</span>( <a class="code" href="classttmath_1_1_big.html#a7575e10d9fff2f301a66bb05ab472111">IsNan</a>() || pow.IsNan() )</div><div class="line"><a name="l01770"></a><span class="lineno"> 1770</span>&#160;            <span class="keywordflow">return</span> <a class="code" href="classttmath_1_1_big.html#a0681595612114e8ab1dc9c8f3e8590e7">CheckCarry</a>(1);</div><div class="line"><a name="l01771"></a><span class="lineno"> 1771</span>&#160;</div><div class="line"><a name="l01772"></a><span class="lineno"> 1772</span>&#160;        Big&lt;exp, man&gt; temp;</div><div class="line"><a name="l01773"></a><span class="lineno"> 1773</span>&#160;        <a class="code" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a> c = temp.Ln(*<span class="keyword">this</span>);</div><div class="line"><a name="l01774"></a><span class="lineno"> 1774</span>&#160;</div><div class="line"><a name="l01775"></a><span class="lineno"> 1775</span>&#160;        <span class="keywordflow">if</span>( c != 0 ) <span class="comment">// can be 2 from Ln()</span></div><div class="line"><a name="l01776"></a><span class="lineno"> 1776</span>&#160;        {</div><div class="line"><a name="l01777"></a><span class="lineno"> 1777</span>&#160;            <a class="code" href="classttmath_1_1_big.html#a568b91071e386e75dffb0aebdf1c47ec">SetNan</a>();</div><div class="line"><a name="l01778"></a><span class="lineno"> 1778</span>&#160;            <span class="keywordflow">return</span> c;</div><div class="line"><a name="l01779"></a><span class="lineno"> 1779</span>&#160;        }</div><div class="line"><a name="l01780"></a><span class="lineno"> 1780</span>&#160;</div><div class="line"><a name="l01781"></a><span class="lineno"> 1781</span>&#160;        c += temp.Mul(pow);</div><div class="line"><a name="l01782"></a><span class="lineno"> 1782</span>&#160;        c += <a class="code" href="classttmath_1_1_big.html#a2c2c7de54743b12c05f1bfea7b153eba">Exp</a>(temp);</div><div class="line"><a name="l01783"></a><span class="lineno"> 1783</span>&#160;</div><div class="line"><a name="l01784"></a><span class="lineno"> 1784</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="classttmath_1_1_big.html#a0681595612114e8ab1dc9c8f3e8590e7">CheckCarry</a>(c);</div><div class="line"><a name="l01785"></a><span class="lineno"> 1785</span>&#160;    }</div><div class="ttc" id="classttmath_1_1_big_html_a0681595612114e8ab1dc9c8f3e8590e7"><div class="ttname"><a href="classttmath_1_1_big.html#a0681595612114e8ab1dc9c8f3e8590e7">ttmath::Big::CheckCarry</a></div><div class="ttdeci">uint CheckCarry(uint c)</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l00121">ttmathbig.h:121</a></div></div>
<div class="ttc" id="classttmath_1_1_big_html_a568b91071e386e75dffb0aebdf1c47ec"><div class="ttname"><a href="classttmath_1_1_big.html#a568b91071e386e75dffb0aebdf1c47ec">ttmath::Big::SetNan</a></div><div class="ttdeci">void SetNan()</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l00296">ttmathbig.h:296</a></div></div>
<div class="ttc" id="classttmath_1_1_big_html_a2c2c7de54743b12c05f1bfea7b153eba"><div class="ttname"><a href="classttmath_1_1_big.html#a2c2c7de54743b12c05f1bfea7b153eba">ttmath::Big::Exp</a></div><div class="ttdeci">uint Exp(const Big&lt; exp, man &gt; &amp;x)</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l01966">ttmathbig.h:1966</a></div></div>
<div class="ttc" id="classttmath_1_1_big_html_a7575e10d9fff2f301a66bb05ab472111"><div class="ttname"><a href="classttmath_1_1_big.html#a7575e10d9fff2f301a66bb05ab472111">ttmath::Big::IsNan</a></div><div class="ttdeci">bool IsNan() const</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l00667">ttmathbig.h:667</a></div></div>
<div class="ttc" id="namespacettmath_html_a5c1fccc9761aaa3d2b6dd32c224f5dac"><div class="ttname"><a href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">ttmath::uint</a></div><div class="ttdeci">uint64_t uint</div><div class="ttdef"><b>Definition:</b> <a href="ttmathtypes_8h_source.html#l00238">ttmathtypes.h:238</a></div></div>
</div><!-- fragment -->
<p class="reference">References <a class="el" href="ttmathbig_8h_source.html#l00121">ttmath::Big&lt; exp, man &gt;::CheckCarry()</a>, <a class="el" href="ttmathbig_8h_source.html#l01966">ttmath::Big&lt; exp, man &gt;::Exp()</a>, <a class="el" href="ttmathbig_8h_source.html#l00667">ttmath::Big&lt; exp, man &gt;::IsNan()</a>, <a class="el" href="ttmathbig_8h_source.html#l02144">ttmath::Big&lt; exp, man &gt;::Ln()</a>, <a class="el" href="ttmathbig_8h_source.html#l01373">ttmath::Big&lt; exp, man &gt;::Mul()</a>, and <a class="el" href="ttmathbig_8h_source.html#l00296">ttmath::Big&lt; exp, man &gt;::SetNan()</a>.</p>

<p class="reference">Referenced by <a class="el" href="ttmathbig_8h_source.html#l01797">ttmath::Big&lt; exp, man &gt;::Pow()</a>.</p>

</div>
</div>
<a id="a52ea0acdfd8b1ea83073d18aec855a0e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a52ea0acdfd8b1ea83073d18aec855a0e">&#9670;&nbsp;</a></span>PowInt()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;uint exp, uint man&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a> <a class="el" href="classttmath_1_1_big.html">ttmath::Big</a>&lt; exp, man &gt;::PowInt </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classttmath_1_1_big.html">Big</a>&lt; exp, man &gt; &amp;&#160;</td>
          <td class="paramname"><em>pow</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>power this = this ^ [pow] pow is treated as a value without a fraction pow can be negative</p>
<p>return values:</p><ul>
<li>0 - ok</li>
<li>1 - carry</li>
<li>2 - incorrect arguments 0^0 or 0^(-something) </li>
</ul>

<p class="definition">Definition at line <a class="el" href="ttmathbig_8h_source.html#l01731">1731</a> of file <a class="el" href="ttmathbig_8h_source.html">ttmathbig.h</a>.</p>
<div class="fragment"><div class="line"><a name="l01732"></a><span class="lineno"> 1732</span>&#160;    {</div><div class="line"><a name="l01733"></a><span class="lineno"> 1733</span>&#160;        <span class="keywordflow">if</span>( <a class="code" href="classttmath_1_1_big.html#a7575e10d9fff2f301a66bb05ab472111">IsNan</a>() || pow.IsNan() )</div><div class="line"><a name="l01734"></a><span class="lineno"> 1734</span>&#160;            <span class="keywordflow">return</span> <a class="code" href="classttmath_1_1_big.html#a0681595612114e8ab1dc9c8f3e8590e7">CheckCarry</a>(1);</div><div class="line"><a name="l01735"></a><span class="lineno"> 1735</span>&#160;</div><div class="line"><a name="l01736"></a><span class="lineno"> 1736</span>&#160;        <span class="keywordflow">if</span>( !pow.IsSign() )</div><div class="line"><a name="l01737"></a><span class="lineno"> 1737</span>&#160;            <span class="keywordflow">return</span> <a class="code" href="classttmath_1_1_big.html#adddcbcf842625d2c59bd072cc8931d6f">PowUInt</a>(pow);</div><div class="line"><a name="l01738"></a><span class="lineno"> 1738</span>&#160;</div><div class="line"><a name="l01739"></a><span class="lineno"> 1739</span>&#160;        <span class="keywordflow">if</span>( <a class="code" href="classttmath_1_1_big.html#a00cdfa94cc491487709a3f1356fd0a14">IsZero</a>() )</div><div class="line"><a name="l01740"></a><span class="lineno"> 1740</span>&#160;        {</div><div class="line"><a name="l01741"></a><span class="lineno"> 1741</span>&#160;            <span class="comment">// if &#39;pow&#39; is negative then</span></div><div class="line"><a name="l01742"></a><span class="lineno"> 1742</span>&#160;            <span class="comment">// &#39;this&#39; must be different from zero</span></div><div class="line"><a name="l01743"></a><span class="lineno"> 1743</span>&#160;            <a class="code" href="classttmath_1_1_big.html#a568b91071e386e75dffb0aebdf1c47ec">SetNan</a>();</div><div class="line"><a name="l01744"></a><span class="lineno"> 1744</span>&#160;            <span class="keywordflow">return</span> 2;</div><div class="line"><a name="l01745"></a><span class="lineno"> 1745</span>&#160;        }</div><div class="line"><a name="l01746"></a><span class="lineno"> 1746</span>&#160;</div><div class="line"><a name="l01747"></a><span class="lineno"> 1747</span>&#160;        Big&lt;exp, man&gt; temp(*<span class="keyword">this</span>);</div><div class="line"><a name="l01748"></a><span class="lineno"> 1748</span>&#160;        <a class="code" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a> c = temp.PowUInt(pow); <span class="comment">// here can only be a carry (result:1)</span></div><div class="line"><a name="l01749"></a><span class="lineno"> 1749</span>&#160;</div><div class="line"><a name="l01750"></a><span class="lineno"> 1750</span>&#160;        <a class="code" href="classttmath_1_1_big.html#a5243a9f27365aa90ef3504fd9e52e476">SetOne</a>();</div><div class="line"><a name="l01751"></a><span class="lineno"> 1751</span>&#160;        c += <a class="code" href="classttmath_1_1_big.html#a57fa951410244551c3449910fe129d64">Div</a>(temp);</div><div class="line"><a name="l01752"></a><span class="lineno"> 1752</span>&#160;</div><div class="line"><a name="l01753"></a><span class="lineno"> 1753</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="classttmath_1_1_big.html#a0681595612114e8ab1dc9c8f3e8590e7">CheckCarry</a>(c);</div><div class="line"><a name="l01754"></a><span class="lineno"> 1754</span>&#160;    }</div><div class="ttc" id="classttmath_1_1_big_html_a0681595612114e8ab1dc9c8f3e8590e7"><div class="ttname"><a href="classttmath_1_1_big.html#a0681595612114e8ab1dc9c8f3e8590e7">ttmath::Big::CheckCarry</a></div><div class="ttdeci">uint CheckCarry(uint c)</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l00121">ttmathbig.h:121</a></div></div>
<div class="ttc" id="classttmath_1_1_big_html_a568b91071e386e75dffb0aebdf1c47ec"><div class="ttname"><a href="classttmath_1_1_big.html#a568b91071e386e75dffb0aebdf1c47ec">ttmath::Big::SetNan</a></div><div class="ttdeci">void SetNan()</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l00296">ttmathbig.h:296</a></div></div>
<div class="ttc" id="classttmath_1_1_big_html_a5243a9f27365aa90ef3504fd9e52e476"><div class="ttname"><a href="classttmath_1_1_big.html#a5243a9f27365aa90ef3504fd9e52e476">ttmath::Big::SetOne</a></div><div class="ttdeci">void SetOne()</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l00271">ttmathbig.h:271</a></div></div>
<div class="ttc" id="classttmath_1_1_big_html_adddcbcf842625d2c59bd072cc8931d6f"><div class="ttname"><a href="classttmath_1_1_big.html#adddcbcf842625d2c59bd072cc8931d6f">ttmath::Big::PowUInt</a></div><div class="ttdeci">uint PowUInt(Big&lt; exp, man &gt; pow)</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l01675">ttmathbig.h:1675</a></div></div>
<div class="ttc" id="classttmath_1_1_big_html_a57fa951410244551c3449910fe129d64"><div class="ttname"><a href="classttmath_1_1_big.html#a57fa951410244551c3449910fe129d64">ttmath::Big::Div</a></div><div class="ttdeci">uint Div(const Big&lt; exp, man &gt; &amp;ss2, bool round=true)</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l01470">ttmathbig.h:1470</a></div></div>
<div class="ttc" id="classttmath_1_1_big_html_a00cdfa94cc491487709a3f1356fd0a14"><div class="ttname"><a href="classttmath_1_1_big.html#a00cdfa94cc491487709a3f1356fd0a14">ttmath::Big::IsZero</a></div><div class="ttdeci">bool IsZero() const</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l00648">ttmathbig.h:648</a></div></div>
<div class="ttc" id="classttmath_1_1_big_html_a7575e10d9fff2f301a66bb05ab472111"><div class="ttname"><a href="classttmath_1_1_big.html#a7575e10d9fff2f301a66bb05ab472111">ttmath::Big::IsNan</a></div><div class="ttdeci">bool IsNan() const</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l00667">ttmathbig.h:667</a></div></div>
<div class="ttc" id="namespacettmath_html_a5c1fccc9761aaa3d2b6dd32c224f5dac"><div class="ttname"><a href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">ttmath::uint</a></div><div class="ttdeci">uint64_t uint</div><div class="ttdef"><b>Definition:</b> <a href="ttmathtypes_8h_source.html#l00238">ttmathtypes.h:238</a></div></div>
</div><!-- fragment -->
<p class="reference">References <a class="el" href="ttmathbig_8h_source.html#l00121">ttmath::Big&lt; exp, man &gt;::CheckCarry()</a>, <a class="el" href="ttmathbig_8h_source.html#l01470">ttmath::Big&lt; exp, man &gt;::Div()</a>, <a class="el" href="ttmathbig_8h_source.html#l00667">ttmath::Big&lt; exp, man &gt;::IsNan()</a>, <a class="el" href="ttmathbig_8h_source.html#l00658">ttmath::Big&lt; exp, man &gt;::IsSign()</a>, <a class="el" href="ttmathbig_8h_source.html#l00648">ttmath::Big&lt; exp, man &gt;::IsZero()</a>, <a class="el" href="ttmathbig_8h_source.html#l01675">ttmath::Big&lt; exp, man &gt;::PowUInt()</a>, <a class="el" href="ttmathbig_8h_source.html#l00296">ttmath::Big&lt; exp, man &gt;::SetNan()</a>, and <a class="el" href="ttmathbig_8h_source.html#l00271">ttmath::Big&lt; exp, man &gt;::SetOne()</a>.</p>

<p class="reference">Referenced by <a class="el" href="ttmathbig_8h_source.html#l01797">ttmath::Big&lt; exp, man &gt;::Pow()</a>.</p>

</div>
</div>
<a id="adddcbcf842625d2c59bd072cc8931d6f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#adddcbcf842625d2c59bd072cc8931d6f">&#9670;&nbsp;</a></span>PowUInt()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;uint exp, uint man&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a> <a class="el" href="classttmath_1_1_big.html">ttmath::Big</a>&lt; exp, man &gt;::PowUInt </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classttmath_1_1_big.html">Big</a>&lt; exp, man &gt;&#160;</td>
          <td class="paramname"><em>pow</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>power this = this ^ abs([pow]) pow is treated as a value without a sign and without a fraction if pow has a sign then the method <a class="el" href="namespacettmath.html#a73415d46abca7b89ea7bad780b152b9f">pow.Abs()</a> is used if pow has a fraction the fraction is skipped (not used in calculation)</p>
<p>return values:</p><ul>
<li>0 - ok</li>
<li>1 - carry</li>
<li>2 - incorrect arguments (0^0) </li>
</ul>

<p class="definition">Definition at line <a class="el" href="ttmathbig_8h_source.html#l01675">1675</a> of file <a class="el" href="ttmathbig_8h_source.html">ttmathbig.h</a>.</p>
<div class="fragment"><div class="line"><a name="l01676"></a><span class="lineno"> 1676</span>&#160;    {</div><div class="line"><a name="l01677"></a><span class="lineno"> 1677</span>&#160;        <span class="keywordflow">if</span>( <a class="code" href="classttmath_1_1_big.html#a7575e10d9fff2f301a66bb05ab472111">IsNan</a>() || pow.IsNan() )</div><div class="line"><a name="l01678"></a><span class="lineno"> 1678</span>&#160;            <span class="keywordflow">return</span> <a class="code" href="classttmath_1_1_big.html#a0681595612114e8ab1dc9c8f3e8590e7">CheckCarry</a>(1);</div><div class="line"><a name="l01679"></a><span class="lineno"> 1679</span>&#160;</div><div class="line"><a name="l01680"></a><span class="lineno"> 1680</span>&#160;        <span class="keywordflow">if</span>( <a class="code" href="classttmath_1_1_big.html#a00cdfa94cc491487709a3f1356fd0a14">IsZero</a>() )</div><div class="line"><a name="l01681"></a><span class="lineno"> 1681</span>&#160;        {</div><div class="line"><a name="l01682"></a><span class="lineno"> 1682</span>&#160;            <span class="keywordflow">if</span>( pow.IsZero() )</div><div class="line"><a name="l01683"></a><span class="lineno"> 1683</span>&#160;            {</div><div class="line"><a name="l01684"></a><span class="lineno"> 1684</span>&#160;                <a class="code" href="classttmath_1_1_big.html#a568b91071e386e75dffb0aebdf1c47ec">SetNan</a>();</div><div class="line"><a name="l01685"></a><span class="lineno"> 1685</span>&#160;                <span class="keywordflow">return</span> 2;</div><div class="line"><a name="l01686"></a><span class="lineno"> 1686</span>&#160;            }</div><div class="line"><a name="l01687"></a><span class="lineno"> 1687</span>&#160;</div><div class="line"><a name="l01688"></a><span class="lineno"> 1688</span>&#160;            <span class="comment">// 0^(+something) is zero</span></div><div class="line"><a name="l01689"></a><span class="lineno"> 1689</span>&#160;            <span class="keywordflow">return</span> 0;</div><div class="line"><a name="l01690"></a><span class="lineno"> 1690</span>&#160;        }</div><div class="line"><a name="l01691"></a><span class="lineno"> 1691</span>&#160;</div><div class="line"><a name="l01692"></a><span class="lineno"> 1692</span>&#160;        <span class="keywordflow">if</span>( pow.IsSign() )</div><div class="line"><a name="l01693"></a><span class="lineno"> 1693</span>&#160;            pow.Abs();</div><div class="line"><a name="l01694"></a><span class="lineno"> 1694</span>&#160;</div><div class="line"><a name="l01695"></a><span class="lineno"> 1695</span>&#160;        Big&lt;exp, man&gt; start(*<span class="keyword">this</span>);</div><div class="line"><a name="l01696"></a><span class="lineno"> 1696</span>&#160;        Big&lt;exp, man&gt; result;</div><div class="line"><a name="l01697"></a><span class="lineno"> 1697</span>&#160;        Big&lt;exp, man&gt; one;</div><div class="line"><a name="l01698"></a><span class="lineno"> 1698</span>&#160;        <a class="code" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a> c = 0;</div><div class="line"><a name="l01699"></a><span class="lineno"> 1699</span>&#160;        one.SetOne();</div><div class="line"><a name="l01700"></a><span class="lineno"> 1700</span>&#160;        result = one;</div><div class="line"><a name="l01701"></a><span class="lineno"> 1701</span>&#160;</div><div class="line"><a name="l01702"></a><span class="lineno"> 1702</span>&#160;        <span class="keywordflow">while</span>( !c )</div><div class="line"><a name="l01703"></a><span class="lineno"> 1703</span>&#160;        {</div><div class="line"><a name="l01704"></a><span class="lineno"> 1704</span>&#160;            <span class="keywordflow">if</span>( pow.Mod2() )</div><div class="line"><a name="l01705"></a><span class="lineno"> 1705</span>&#160;                c += result.Mul(start);</div><div class="line"><a name="l01706"></a><span class="lineno"> 1706</span>&#160;</div><div class="line"><a name="l01707"></a><span class="lineno"> 1707</span>&#160;            c += pow.exponent.SubOne();</div><div class="line"><a name="l01708"></a><span class="lineno"> 1708</span>&#160;</div><div class="line"><a name="l01709"></a><span class="lineno"> 1709</span>&#160;            <span class="keywordflow">if</span>( pow &lt; one )</div><div class="line"><a name="l01710"></a><span class="lineno"> 1710</span>&#160;                <span class="keywordflow">break</span>;</div><div class="line"><a name="l01711"></a><span class="lineno"> 1711</span>&#160;</div><div class="line"><a name="l01712"></a><span class="lineno"> 1712</span>&#160;            c += start.Mul(start);</div><div class="line"><a name="l01713"></a><span class="lineno"> 1713</span>&#160;        }</div><div class="line"><a name="l01714"></a><span class="lineno"> 1714</span>&#160;</div><div class="line"><a name="l01715"></a><span class="lineno"> 1715</span>&#160;        *<span class="keyword">this</span> = result;</div><div class="line"><a name="l01716"></a><span class="lineno"> 1716</span>&#160;</div><div class="line"><a name="l01717"></a><span class="lineno"> 1717</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="classttmath_1_1_big.html#a0681595612114e8ab1dc9c8f3e8590e7">CheckCarry</a>(c);</div><div class="line"><a name="l01718"></a><span class="lineno"> 1718</span>&#160;    }</div><div class="ttc" id="classttmath_1_1_big_html_a0681595612114e8ab1dc9c8f3e8590e7"><div class="ttname"><a href="classttmath_1_1_big.html#a0681595612114e8ab1dc9c8f3e8590e7">ttmath::Big::CheckCarry</a></div><div class="ttdeci">uint CheckCarry(uint c)</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l00121">ttmathbig.h:121</a></div></div>
<div class="ttc" id="classttmath_1_1_big_html_a568b91071e386e75dffb0aebdf1c47ec"><div class="ttname"><a href="classttmath_1_1_big.html#a568b91071e386e75dffb0aebdf1c47ec">ttmath::Big::SetNan</a></div><div class="ttdeci">void SetNan()</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l00296">ttmathbig.h:296</a></div></div>
<div class="ttc" id="classttmath_1_1_big_html_a00cdfa94cc491487709a3f1356fd0a14"><div class="ttname"><a href="classttmath_1_1_big.html#a00cdfa94cc491487709a3f1356fd0a14">ttmath::Big::IsZero</a></div><div class="ttdeci">bool IsZero() const</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l00648">ttmathbig.h:648</a></div></div>
<div class="ttc" id="classttmath_1_1_big_html_a7575e10d9fff2f301a66bb05ab472111"><div class="ttname"><a href="classttmath_1_1_big.html#a7575e10d9fff2f301a66bb05ab472111">ttmath::Big::IsNan</a></div><div class="ttdeci">bool IsNan() const</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l00667">ttmathbig.h:667</a></div></div>
<div class="ttc" id="namespacettmath_html_a5c1fccc9761aaa3d2b6dd32c224f5dac"><div class="ttname"><a href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">ttmath::uint</a></div><div class="ttdeci">uint64_t uint</div><div class="ttdef"><b>Definition:</b> <a href="ttmathtypes_8h_source.html#l00238">ttmathtypes.h:238</a></div></div>
</div><!-- fragment -->
<p class="reference">References <a class="el" href="ttmathbig_8h_source.html#l00682">ttmath::Big&lt; exp, man &gt;::Abs()</a>, <a class="el" href="ttmathbig_8h_source.html#l00121">ttmath::Big&lt; exp, man &gt;::CheckCarry()</a>, <a class="el" href="ttmathbig_8h_source.html#l00667">ttmath::Big&lt; exp, man &gt;::IsNan()</a>, <a class="el" href="ttmathbig_8h_source.html#l00658">ttmath::Big&lt; exp, man &gt;::IsSign()</a>, <a class="el" href="ttmathbig_8h_source.html#l00648">ttmath::Big&lt; exp, man &gt;::IsZero()</a>, <a class="el" href="ttmathbig_8h_source.html#l01559">ttmath::Big&lt; exp, man &gt;::Mod2()</a>, <a class="el" href="ttmathbig_8h_source.html#l01373">ttmath::Big&lt; exp, man &gt;::Mul()</a>, <a class="el" href="ttmathbig_8h_source.html#l00296">ttmath::Big&lt; exp, man &gt;::SetNan()</a>, <a class="el" href="ttmathbig_8h_source.html#l00271">ttmath::Big&lt; exp, man &gt;::SetOne()</a>, and <a class="el" href="ttmathint_8h_source.html#l00340">ttmath::Int&lt; value_size &gt;::SubOne()</a>.</p>

<p class="reference">Referenced by <a class="el" href="ttmathbig_8h_source.html#l01966">ttmath::Big&lt; exp, man &gt;::Exp()</a>, and <a class="el" href="ttmathbig_8h_source.html#l01731">ttmath::Big&lt; exp, man &gt;::PowInt()</a>.</p>

</div>
</div>
<a id="a05220c77273e378d803d25085a129e71"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a05220c77273e378d803d25085a129e71">&#9670;&nbsp;</a></span>RemainFraction()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;uint exp, uint man&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classttmath_1_1_big.html">ttmath::Big</a>&lt; exp, man &gt;::RemainFraction </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>this method remains only a fraction from the value</p>
<p>samples:</p><ul>
<li>30.56 will be 0.56</li>
<li>-12.67 will be -0.67 </li>
</ul>

<p class="definition">Definition at line <a class="el" href="ttmathbig_8h_source.html#l05842">5842</a> of file <a class="el" href="ttmathbig_8h_source.html">ttmathbig.h</a>.</p>
<div class="fragment"><div class="line"><a name="l05843"></a><span class="lineno"> 5843</span>&#160;    {</div><div class="line"><a name="l05844"></a><span class="lineno"> 5844</span>&#160;        <span class="keywordflow">if</span>( <a class="code" href="classttmath_1_1_big.html#a7575e10d9fff2f301a66bb05ab472111">IsNan</a>() || <a class="code" href="classttmath_1_1_big.html#a00cdfa94cc491487709a3f1356fd0a14">IsZero</a>() )</div><div class="line"><a name="l05845"></a><span class="lineno"> 5845</span>&#160;            <span class="keywordflow">return</span>;</div><div class="line"><a name="l05846"></a><span class="lineno"> 5846</span>&#160;</div><div class="line"><a name="l05847"></a><span class="lineno"> 5847</span>&#160;        <span class="keywordflow">if</span>( !exponent.<a class="code" href="classttmath_1_1_int.html#af91fdc65105f7ceb071c2a8a98d0cbfb">IsSign</a>() )</div><div class="line"><a name="l05848"></a><span class="lineno"> 5848</span>&#160;        {</div><div class="line"><a name="l05849"></a><span class="lineno"> 5849</span>&#160;            <span class="comment">// exponent &gt;= 0 -- the value doesn&#39;t have any fractions</span></div><div class="line"><a name="l05850"></a><span class="lineno"> 5850</span>&#160;            <span class="comment">// we return zero</span></div><div class="line"><a name="l05851"></a><span class="lineno"> 5851</span>&#160;            <a class="code" href="classttmath_1_1_big.html#a1b5980e7d66c1a6bcfe55d85eccb1821">SetZero</a>();</div><div class="line"><a name="l05852"></a><span class="lineno"> 5852</span>&#160;            <span class="keywordflow">return</span>;</div><div class="line"><a name="l05853"></a><span class="lineno"> 5853</span>&#160;        }</div><div class="line"><a name="l05854"></a><span class="lineno"> 5854</span>&#160;</div><div class="line"><a name="l05855"></a><span class="lineno"> 5855</span>&#160;        <span class="keywordflow">if</span>( exponent &lt;= -<a class="code" href="namespacettmath.html#a4b0a5dcba29a2c7a0abc8b4403a25ac4">sint</a>(man*<a class="code" href="ttmathtypes_8h.html#aef936ab7a0d7f0c34a9a794b3072cf6a">TTMATH_BITS_PER_UINT</a>) )</div><div class="line"><a name="l05856"></a><span class="lineno"> 5856</span>&#160;        {</div><div class="line"><a name="l05857"></a><span class="lineno"> 5857</span>&#160;            <span class="comment">// the value is from (-1,1)</span></div><div class="line"><a name="l05858"></a><span class="lineno"> 5858</span>&#160;            <span class="comment">// we don&#39;t make anything with the value</span></div><div class="line"><a name="l05859"></a><span class="lineno"> 5859</span>&#160;            <span class="keywordflow">return</span>;</div><div class="line"><a name="l05860"></a><span class="lineno"> 5860</span>&#160;        }</div><div class="line"><a name="l05861"></a><span class="lineno"> 5861</span>&#160;</div><div class="line"><a name="l05862"></a><span class="lineno"> 5862</span>&#160;        <span class="comment">// e will be from (-man*TTMATH_BITS_PER_UINT, 0)</span></div><div class="line"><a name="l05863"></a><span class="lineno"> 5863</span>&#160;        <a class="code" href="namespacettmath.html#a4b0a5dcba29a2c7a0abc8b4403a25ac4">sint</a> e = exponent.<a class="code" href="classttmath_1_1_int.html#af934f141ffee622c5b19edc661d2d76f">ToInt</a>();</div><div class="line"><a name="l05864"></a><span class="lineno"> 5864</span>&#160;</div><div class="line"><a name="l05865"></a><span class="lineno"> 5865</span>&#160;        <a class="code" href="namespacettmath.html#a4b0a5dcba29a2c7a0abc8b4403a25ac4">sint</a> how_many_bits_leave = <a class="code" href="namespacettmath.html#a4b0a5dcba29a2c7a0abc8b4403a25ac4">sint</a>(man*<a class="code" href="ttmathtypes_8h.html#aef936ab7a0d7f0c34a9a794b3072cf6a">TTMATH_BITS_PER_UINT</a>) + e; <span class="comment">// there&#39;ll be a subtraction -- e is negative</span></div><div class="line"><a name="l05866"></a><span class="lineno"> 5866</span>&#160;        mantissa.<a class="code" href="classttmath_1_1_u_int.html#abbcc02c03802229412f902de309bad7d">Rcl</a>( how_many_bits_leave, 0);</div><div class="line"><a name="l05867"></a><span class="lineno"> 5867</span>&#160;</div><div class="line"><a name="l05868"></a><span class="lineno"> 5868</span>&#160;        <span class="comment">// there&#39;ll not be a carry because the exponent is too small</span></div><div class="line"><a name="l05869"></a><span class="lineno"> 5869</span>&#160;        exponent.<a class="code" href="classttmath_1_1_int.html#af8e3e13a842ecee73415e2c14818063f">Sub</a>( how_many_bits_leave );</div><div class="line"><a name="l05870"></a><span class="lineno"> 5870</span>&#160;</div><div class="line"><a name="l05871"></a><span class="lineno"> 5871</span>&#160;        <span class="comment">// we must call Standardizing() here</span></div><div class="line"><a name="l05872"></a><span class="lineno"> 5872</span>&#160;        <a class="code" href="classttmath_1_1_big.html#aedc4abe8e1d984289b41830e9a1d67fb">Standardizing</a>();</div><div class="line"><a name="l05873"></a><span class="lineno"> 5873</span>&#160;    }</div><div class="ttc" id="classttmath_1_1_u_int_html_abbcc02c03802229412f902de309bad7d"><div class="ttname"><a href="classttmath_1_1_u_int.html#abbcc02c03802229412f902de309bad7d">ttmath::UInt::Rcl</a></div><div class="ttdeci">uint Rcl(uint bits, uint c=0)</div><div class="ttdef"><b>Definition:</b> <a href="ttmathuint_8h_source.html#l00460">ttmathuint.h:460</a></div></div>
<div class="ttc" id="classttmath_1_1_big_html_a00cdfa94cc491487709a3f1356fd0a14"><div class="ttname"><a href="classttmath_1_1_big.html#a00cdfa94cc491487709a3f1356fd0a14">ttmath::Big::IsZero</a></div><div class="ttdeci">bool IsZero() const</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l00648">ttmathbig.h:648</a></div></div>
<div class="ttc" id="classttmath_1_1_int_html_af91fdc65105f7ceb071c2a8a98d0cbfb"><div class="ttname"><a href="classttmath_1_1_int.html#af91fdc65105f7ceb071c2a8a98d0cbfb">ttmath::Int::IsSign</a></div><div class="ttdeci">bool IsSign() const</div><div class="ttdef"><b>Definition:</b> <a href="ttmathint_8h_source.html#l00156">ttmathint.h:156</a></div></div>
<div class="ttc" id="classttmath_1_1_big_html_a7575e10d9fff2f301a66bb05ab472111"><div class="ttname"><a href="classttmath_1_1_big.html#a7575e10d9fff2f301a66bb05ab472111">ttmath::Big::IsNan</a></div><div class="ttdeci">bool IsNan() const</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l00667">ttmathbig.h:667</a></div></div>
<div class="ttc" id="ttmathtypes_8h_html_aef936ab7a0d7f0c34a9a794b3072cf6a"><div class="ttname"><a href="ttmathtypes_8h.html#aef936ab7a0d7f0c34a9a794b3072cf6a">TTMATH_BITS_PER_UINT</a></div><div class="ttdeci">#define TTMATH_BITS_PER_UINT</div><div class="ttdef"><b>Definition:</b> <a href="ttmathtypes_8h_source.html#l00253">ttmathtypes.h:253</a></div></div>
<div class="ttc" id="classttmath_1_1_big_html_aedc4abe8e1d984289b41830e9a1d67fb"><div class="ttname"><a href="classttmath_1_1_big.html#aedc4abe8e1d984289b41830e9a1d67fb">ttmath::Big::Standardizing</a></div><div class="ttdeci">uint Standardizing()</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l00173">ttmathbig.h:173</a></div></div>
<div class="ttc" id="namespacettmath_html_a4b0a5dcba29a2c7a0abc8b4403a25ac4"><div class="ttname"><a href="namespacettmath.html#a4b0a5dcba29a2c7a0abc8b4403a25ac4">ttmath::sint</a></div><div class="ttdeci">int64_t sint</div><div class="ttdef"><b>Definition:</b> <a href="ttmathtypes_8h_source.html#l00243">ttmathtypes.h:243</a></div></div>
<div class="ttc" id="classttmath_1_1_big_html_a1b5980e7d66c1a6bcfe55d85eccb1821"><div class="ttname"><a href="classttmath_1_1_big.html#a1b5980e7d66c1a6bcfe55d85eccb1821">ttmath::Big::SetZero</a></div><div class="ttdeci">void SetZero()</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l00256">ttmathbig.h:256</a></div></div>
<div class="ttc" id="classttmath_1_1_int_html_af8e3e13a842ecee73415e2c14818063f"><div class="ttname"><a href="classttmath_1_1_int.html#af8e3e13a842ecee73415e2c14818063f">ttmath::Int::Sub</a></div><div class="ttdeci">uint Sub(const Int&lt; value_size &gt; &amp;ss2)</div><div class="ttdef"><b>Definition:</b> <a href="ttmathint_8h_source.html#l00299">ttmathint.h:299</a></div></div>
<div class="ttc" id="classttmath_1_1_int_html_af934f141ffee622c5b19edc661d2d76f"><div class="ttname"><a href="classttmath_1_1_int.html#af934f141ffee622c5b19edc661d2d76f">ttmath::Int::ToInt</a></div><div class="ttdeci">sint ToInt() const</div><div class="ttdef"><b>Definition:</b> <a href="ttmathint_8h_source.html#l01132">ttmathint.h:1132</a></div></div>
</div><!-- fragment -->
<p class="reference">References <a class="el" href="ttmathbig_8h_source.html#l00667">ttmath::Big&lt; exp, man &gt;::IsNan()</a>, <a class="el" href="ttmathint_8h_source.html#l00156">ttmath::Int&lt; value_size &gt;::IsSign()</a>, <a class="el" href="ttmathbig_8h_source.html#l00648">ttmath::Big&lt; exp, man &gt;::IsZero()</a>, <a class="el" href="ttmathuint_8h_source.html#l00460">ttmath::UInt&lt; value_size &gt;::Rcl()</a>, <a class="el" href="ttmathbig_8h_source.html#l00256">ttmath::Big&lt; exp, man &gt;::SetZero()</a>, <a class="el" href="ttmathbig_8h_source.html#l00173">ttmath::Big&lt; exp, man &gt;::Standardizing()</a>, <a class="el" href="ttmathint_8h_source.html#l00299">ttmath::Int&lt; value_size &gt;::Sub()</a>, <a class="el" href="ttmathint_8h_source.html#l01132">ttmath::Int&lt; value_size &gt;::ToInt()</a>, and <a class="el" href="ttmathtypes_8h_source.html#l00253">TTMATH_BITS_PER_UINT</a>.</p>

</div>
</div>
<a id="a01fd17a7bc3beda037834bb954460295"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a01fd17a7bc3beda037834bb954460295">&#9670;&nbsp;</a></span>Round()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;uint exp, uint man&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a> <a class="el" href="classttmath_1_1_big.html">ttmath::Big</a>&lt; exp, man &gt;::Round </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>this method rounds to the nearest integer value (it returns a carry if it was)</p>
<p>samples:</p><ul>
<li>2.3 = 2</li>
<li>2.8 = 3</li>
<li>-2.3 = -2</li>
<li>-2.8 = 3 </li>
</ul>

<p class="definition">Definition at line <a class="el" href="ttmathbig_8h_source.html#l05929">5929</a> of file <a class="el" href="ttmathbig_8h_source.html">ttmathbig.h</a>.</p>
<div class="fragment"><div class="line"><a name="l05930"></a><span class="lineno"> 5930</span>&#160;    {</div><div class="line"><a name="l05931"></a><span class="lineno"> 5931</span>&#160;    Big&lt;exp,man&gt; half;</div><div class="line"><a name="l05932"></a><span class="lineno"> 5932</span>&#160;    <a class="code" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a> c;</div><div class="line"><a name="l05933"></a><span class="lineno"> 5933</span>&#160;</div><div class="line"><a name="l05934"></a><span class="lineno"> 5934</span>&#160;        <span class="keywordflow">if</span>( <a class="code" href="classttmath_1_1_big.html#a7575e10d9fff2f301a66bb05ab472111">IsNan</a>() )</div><div class="line"><a name="l05935"></a><span class="lineno"> 5935</span>&#160;            <span class="keywordflow">return</span> 1;</div><div class="line"><a name="l05936"></a><span class="lineno"> 5936</span>&#160;</div><div class="line"><a name="l05937"></a><span class="lineno"> 5937</span>&#160;        <span class="keywordflow">if</span>( <a class="code" href="classttmath_1_1_big.html#a00cdfa94cc491487709a3f1356fd0a14">IsZero</a>() )</div><div class="line"><a name="l05938"></a><span class="lineno"> 5938</span>&#160;            <span class="keywordflow">return</span> 0;</div><div class="line"><a name="l05939"></a><span class="lineno"> 5939</span>&#160;</div><div class="line"><a name="l05940"></a><span class="lineno"> 5940</span>&#160;        half.Set05();</div><div class="line"><a name="l05941"></a><span class="lineno"> 5941</span>&#160;</div><div class="line"><a name="l05942"></a><span class="lineno"> 5942</span>&#160;        <span class="keywordflow">if</span>( <a class="code" href="classttmath_1_1_big.html#ac8f89807eb1878d93d76fe609f4a6b42">IsSign</a>() )</div><div class="line"><a name="l05943"></a><span class="lineno"> 5943</span>&#160;        {</div><div class="line"><a name="l05944"></a><span class="lineno"> 5944</span>&#160;            <span class="comment">// &#39;this&#39; is &lt; 0</span></div><div class="line"><a name="l05945"></a><span class="lineno"> 5945</span>&#160;            c = <a class="code" href="classttmath_1_1_big.html#ab06fe23729905c90461b52be26104744">Sub</a>( half );</div><div class="line"><a name="l05946"></a><span class="lineno"> 5946</span>&#160;        }</div><div class="line"><a name="l05947"></a><span class="lineno"> 5947</span>&#160;        <span class="keywordflow">else</span></div><div class="line"><a name="l05948"></a><span class="lineno"> 5948</span>&#160;        {</div><div class="line"><a name="l05949"></a><span class="lineno"> 5949</span>&#160;            <span class="comment">// &#39;this&#39; is &gt; 0</span></div><div class="line"><a name="l05950"></a><span class="lineno"> 5950</span>&#160;            c = <a class="code" href="classttmath_1_1_big.html#af8cc709585199e6f5b48e9b4e058b043">Add</a>( half );</div><div class="line"><a name="l05951"></a><span class="lineno"> 5951</span>&#160;        }</div><div class="line"><a name="l05952"></a><span class="lineno"> 5952</span>&#160;</div><div class="line"><a name="l05953"></a><span class="lineno"> 5953</span>&#160;        <a class="code" href="classttmath_1_1_big.html#a6ae448d3c59f28495d6951bd688ed485">SkipFraction</a>();</div><div class="line"><a name="l05954"></a><span class="lineno"> 5954</span>&#160;</div><div class="line"><a name="l05955"></a><span class="lineno"> 5955</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="classttmath_1_1_big.html#a0681595612114e8ab1dc9c8f3e8590e7">CheckCarry</a>(c);</div><div class="line"><a name="l05956"></a><span class="lineno"> 5956</span>&#160;    }</div><div class="ttc" id="classttmath_1_1_big_html_ac8f89807eb1878d93d76fe609f4a6b42"><div class="ttname"><a href="classttmath_1_1_big.html#ac8f89807eb1878d93d76fe609f4a6b42">ttmath::Big::IsSign</a></div><div class="ttdeci">bool IsSign() const</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l00658">ttmathbig.h:658</a></div></div>
<div class="ttc" id="classttmath_1_1_big_html_a0681595612114e8ab1dc9c8f3e8590e7"><div class="ttname"><a href="classttmath_1_1_big.html#a0681595612114e8ab1dc9c8f3e8590e7">ttmath::Big::CheckCarry</a></div><div class="ttdeci">uint CheckCarry(uint c)</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l00121">ttmathbig.h:121</a></div></div>
<div class="ttc" id="classttmath_1_1_big_html_a00cdfa94cc491487709a3f1356fd0a14"><div class="ttname"><a href="classttmath_1_1_big.html#a00cdfa94cc491487709a3f1356fd0a14">ttmath::Big::IsZero</a></div><div class="ttdeci">bool IsZero() const</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l00648">ttmathbig.h:648</a></div></div>
<div class="ttc" id="classttmath_1_1_big_html_ab06fe23729905c90461b52be26104744"><div class="ttname"><a href="classttmath_1_1_big.html#ab06fe23729905c90461b52be26104744">ttmath::Big::Sub</a></div><div class="ttdeci">uint Sub(const Big&lt; exp, man &gt; &amp;ss2, bool round=true)</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l00986">ttmathbig.h:986</a></div></div>
<div class="ttc" id="classttmath_1_1_big_html_a7575e10d9fff2f301a66bb05ab472111"><div class="ttname"><a href="classttmath_1_1_big.html#a7575e10d9fff2f301a66bb05ab472111">ttmath::Big::IsNan</a></div><div class="ttdeci">bool IsNan() const</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l00667">ttmathbig.h:667</a></div></div>
<div class="ttc" id="classttmath_1_1_big_html_af8cc709585199e6f5b48e9b4e058b043"><div class="ttname"><a href="classttmath_1_1_big.html#af8cc709585199e6f5b48e9b4e058b043">ttmath::Big::Add</a></div><div class="ttdeci">uint Add(Big&lt; exp, man &gt; ss2, bool round=true, bool adding=true)</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l00930">ttmathbig.h:930</a></div></div>
<div class="ttc" id="classttmath_1_1_big_html_a6ae448d3c59f28495d6951bd688ed485"><div class="ttname"><a href="classttmath_1_1_big.html#a6ae448d3c59f28495d6951bd688ed485">ttmath::Big::SkipFraction</a></div><div class="ttdeci">void SkipFraction()</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l05808">ttmathbig.h:5808</a></div></div>
<div class="ttc" id="namespacettmath_html_a5c1fccc9761aaa3d2b6dd32c224f5dac"><div class="ttname"><a href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">ttmath::uint</a></div><div class="ttdeci">uint64_t uint</div><div class="ttdef"><b>Definition:</b> <a href="ttmathtypes_8h_source.html#l00238">ttmathtypes.h:238</a></div></div>
</div><!-- fragment -->
<p class="reference">References <a class="el" href="ttmathbig_8h_source.html#l00930">ttmath::Big&lt; exp, man &gt;::Add()</a>, <a class="el" href="ttmathbig_8h_source.html#l00121">ttmath::Big&lt; exp, man &gt;::CheckCarry()</a>, <a class="el" href="ttmathbig_8h_source.html#l00667">ttmath::Big&lt; exp, man &gt;::IsNan()</a>, <a class="el" href="ttmathbig_8h_source.html#l00658">ttmath::Big&lt; exp, man &gt;::IsSign()</a>, <a class="el" href="ttmathbig_8h_source.html#l00648">ttmath::Big&lt; exp, man &gt;::IsZero()</a>, <a class="el" href="ttmathbig_8h_source.html#l00285">ttmath::Big&lt; exp, man &gt;::Set05()</a>, <a class="el" href="ttmathbig_8h_source.html#l05808">ttmath::Big&lt; exp, man &gt;::SkipFraction()</a>, and <a class="el" href="ttmathbig_8h_source.html#l00986">ttmath::Big&lt; exp, man &gt;::Sub()</a>.</p>

<p class="reference">Referenced by <a class="el" href="ttmathbig_8h_source.html#l01835">ttmath::Big&lt; exp, man &gt;::Sqrt()</a>.</p>

</div>
</div>
<a id="add0ae88434679a663de0f5b3822d0146"></a>
<h2 class="memtitle"><span class="permalink"><a href="#add0ae88434679a663de0f5b3822d0146">&#9670;&nbsp;</a></span>Set05()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;uint exp, uint man&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classttmath_1_1_big.html">ttmath::Big</a>&lt; exp, man &gt;::Set05 </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>this method sets value 0.5 </p>

<p class="definition">Definition at line <a class="el" href="ttmathbig_8h_source.html#l00285">285</a> of file <a class="el" href="ttmathbig_8h_source.html">ttmathbig.h</a>.</p>
<div class="fragment"><div class="line"><a name="l00286"></a><span class="lineno">  286</span>&#160;    {</div><div class="line"><a name="l00287"></a><span class="lineno">  287</span>&#160;        <a class="code" href="classttmath_1_1_big.html#a5243a9f27365aa90ef3504fd9e52e476">SetOne</a>();</div><div class="line"><a name="l00288"></a><span class="lineno">  288</span>&#160;        exponent.<a class="code" href="classttmath_1_1_int.html#ab46339e71ac07f2c8717fcfb3e6f20e7">SubOne</a>();</div><div class="line"><a name="l00289"></a><span class="lineno">  289</span>&#160;    }</div><div class="ttc" id="classttmath_1_1_big_html_a5243a9f27365aa90ef3504fd9e52e476"><div class="ttname"><a href="classttmath_1_1_big.html#a5243a9f27365aa90ef3504fd9e52e476">ttmath::Big::SetOne</a></div><div class="ttdeci">void SetOne()</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l00271">ttmathbig.h:271</a></div></div>
<div class="ttc" id="classttmath_1_1_int_html_ab46339e71ac07f2c8717fcfb3e6f20e7"><div class="ttname"><a href="classttmath_1_1_int.html#ab46339e71ac07f2c8717fcfb3e6f20e7">ttmath::Int::SubOne</a></div><div class="ttdeci">uint SubOne()</div><div class="ttdef"><b>Definition:</b> <a href="ttmathint_8h_source.html#l00340">ttmathint.h:340</a></div></div>
</div><!-- fragment -->
<p class="reference">References <a class="el" href="ttmathbig_8h_source.html#l00271">ttmath::Big&lt; exp, man &gt;::SetOne()</a>, and <a class="el" href="ttmathint_8h_source.html#l00340">ttmath::Int&lt; value_size &gt;::SubOne()</a>.</p>

<p class="reference">Referenced by <a class="el" href="ttmathbig_8h_source.html#l05929">ttmath::Big&lt; exp, man &gt;::Round()</a>.</p>

</div>
</div>
<a id="acbbb59d97c06e93138551fb160c399c0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acbbb59d97c06e93138551fb160c399c0">&#9670;&nbsp;</a></span>Set05Pi()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;uint exp, uint man&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classttmath_1_1_big.html">ttmath::Big</a>&lt; exp, man &gt;::Set05Pi </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>this method sets the value of 0.5 * pi </p>

<p class="definition">Definition at line <a class="el" href="ttmathbig_8h_source.html#l00406">406</a> of file <a class="el" href="ttmathbig_8h_source.html">ttmathbig.h</a>.</p>
<div class="fragment"><div class="line"><a name="l00407"></a><span class="lineno">  407</span>&#160;    {</div><div class="line"><a name="l00408"></a><span class="lineno">  408</span>&#160;        <span class="comment">// IMPROVE ME</span></div><div class="line"><a name="l00409"></a><span class="lineno">  409</span>&#160;        <span class="comment">// give some compiler-time warning when the size of mantissa is greater than the builtin size of the mantissa pi</span></div><div class="line"><a name="l00410"></a><span class="lineno">  410</span>&#160;        SetMantissaPi();</div><div class="line"><a name="l00411"></a><span class="lineno">  411</span>&#160;        info = 0;</div><div class="line"><a name="l00412"></a><span class="lineno">  412</span>&#160;        exponent = -<a class="code" href="namespacettmath.html#a4b0a5dcba29a2c7a0abc8b4403a25ac4">sint</a>(man)*<a class="code" href="namespacettmath.html#a4b0a5dcba29a2c7a0abc8b4403a25ac4">sint</a>(<a class="code" href="ttmathtypes_8h.html#aef936ab7a0d7f0c34a9a794b3072cf6a">TTMATH_BITS_PER_UINT</a>) + 1;</div><div class="line"><a name="l00413"></a><span class="lineno">  413</span>&#160;    }</div><div class="ttc" id="ttmathtypes_8h_html_aef936ab7a0d7f0c34a9a794b3072cf6a"><div class="ttname"><a href="ttmathtypes_8h.html#aef936ab7a0d7f0c34a9a794b3072cf6a">TTMATH_BITS_PER_UINT</a></div><div class="ttdeci">#define TTMATH_BITS_PER_UINT</div><div class="ttdef"><b>Definition:</b> <a href="ttmathtypes_8h_source.html#l00253">ttmathtypes.h:253</a></div></div>
<div class="ttc" id="namespacettmath_html_a4b0a5dcba29a2c7a0abc8b4403a25ac4"><div class="ttname"><a href="namespacettmath.html#a4b0a5dcba29a2c7a0abc8b4403a25ac4">ttmath::sint</a></div><div class="ttdeci">int64_t sint</div><div class="ttdef"><b>Definition:</b> <a href="ttmathtypes_8h_source.html#l00243">ttmathtypes.h:243</a></div></div>
</div><!-- fragment -->
<p class="reference">References <a class="el" href="ttmathtypes_8h_source.html#l00253">TTMATH_BITS_PER_UINT</a>.</p>

</div>
</div>
<a id="a90e579e35cb45cbe5c49d03cd5e531ef"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a90e579e35cb45cbe5c49d03cd5e531ef">&#9670;&nbsp;</a></span>Set2Pi()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;uint exp, uint man&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classttmath_1_1_big.html">ttmath::Big</a>&lt; exp, man &gt;::Set2Pi </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>this method sets the value of 2 * pi </p>

<p class="definition">Definition at line <a class="el" href="ttmathbig_8h_source.html#l00419">419</a> of file <a class="el" href="ttmathbig_8h_source.html">ttmathbig.h</a>.</p>
<div class="fragment"><div class="line"><a name="l00420"></a><span class="lineno">  420</span>&#160;    {</div><div class="line"><a name="l00421"></a><span class="lineno">  421</span>&#160;        <span class="comment">// IMPROVE ME</span></div><div class="line"><a name="l00422"></a><span class="lineno">  422</span>&#160;        <span class="comment">// give some compiler-time warning when the size of mantissa is greater than the builtin size of the mantissa pi</span></div><div class="line"><a name="l00423"></a><span class="lineno">  423</span>&#160;        SetMantissaPi();</div><div class="line"><a name="l00424"></a><span class="lineno">  424</span>&#160;        info = 0;</div><div class="line"><a name="l00425"></a><span class="lineno">  425</span>&#160;        exponent = -<a class="code" href="namespacettmath.html#a4b0a5dcba29a2c7a0abc8b4403a25ac4">sint</a>(man)*<a class="code" href="namespacettmath.html#a4b0a5dcba29a2c7a0abc8b4403a25ac4">sint</a>(<a class="code" href="ttmathtypes_8h.html#aef936ab7a0d7f0c34a9a794b3072cf6a">TTMATH_BITS_PER_UINT</a>) + 3;</div><div class="line"><a name="l00426"></a><span class="lineno">  426</span>&#160;    }</div><div class="ttc" id="ttmathtypes_8h_html_aef936ab7a0d7f0c34a9a794b3072cf6a"><div class="ttname"><a href="ttmathtypes_8h.html#aef936ab7a0d7f0c34a9a794b3072cf6a">TTMATH_BITS_PER_UINT</a></div><div class="ttdeci">#define TTMATH_BITS_PER_UINT</div><div class="ttdef"><b>Definition:</b> <a href="ttmathtypes_8h_source.html#l00253">ttmathtypes.h:253</a></div></div>
<div class="ttc" id="namespacettmath_html_a4b0a5dcba29a2c7a0abc8b4403a25ac4"><div class="ttname"><a href="namespacettmath.html#a4b0a5dcba29a2c7a0abc8b4403a25ac4">ttmath::sint</a></div><div class="ttdeci">int64_t sint</div><div class="ttdef"><b>Definition:</b> <a href="ttmathtypes_8h_source.html#l00243">ttmathtypes.h:243</a></div></div>
</div><!-- fragment -->
<p class="reference">References <a class="el" href="ttmathtypes_8h_source.html#l00253">TTMATH_BITS_PER_UINT</a>.</p>

</div>
</div>
<a id="a25b9b67e9002f60d70d729f896279e36"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a25b9b67e9002f60d70d729f896279e36">&#9670;&nbsp;</a></span>SetE()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;uint exp, uint man&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classttmath_1_1_big.html">ttmath::Big</a>&lt; exp, man &gt;::SetE </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>this method sets the value of e (the base of the natural logarithm) </p>

<p class="definition">Definition at line <a class="el" href="ttmathbig_8h_source.html#l00433">433</a> of file <a class="el" href="ttmathbig_8h_source.html">ttmathbig.h</a>.</p>
<div class="fragment"><div class="line"><a name="l00434"></a><span class="lineno">  434</span>&#160;    {</div><div class="line"><a name="l00435"></a><span class="lineno">  435</span>&#160;    <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> temp_table[] = {</div><div class="line"><a name="l00436"></a><span class="lineno">  436</span>&#160;        0xadf85458, 0xa2bb4a9a, 0xafdc5620, 0x273d3cf1, 0xd8b9c583, 0xce2d3695, 0xa9e13641, 0x146433fb, </div><div class="line"><a name="l00437"></a><span class="lineno">  437</span>&#160;        0xcc939dce, 0x249b3ef9, 0x7d2fe363, 0x630c75d8, 0xf681b202, 0xaec4617a, 0xd3df1ed5, 0xd5fd6561, </div><div class="line"><a name="l00438"></a><span class="lineno">  438</span>&#160;        0x2433f51f, 0x5f066ed0, 0x85636555, 0x3ded1af3, 0xb557135e, 0x7f57c935, 0x984f0c70, 0xe0e68b77, </div><div class="line"><a name="l00439"></a><span class="lineno">  439</span>&#160;        0xe2a689da, 0xf3efe872, 0x1df158a1, 0x36ade735, 0x30acca4f, 0x483a797a, 0xbc0ab182, 0xb324fb61, </div><div class="line"><a name="l00440"></a><span class="lineno">  440</span>&#160;        0xd108a94b, 0xb2c8e3fb, 0xb96adab7, 0x60d7f468, 0x1d4f42a3, 0xde394df4, 0xae56ede7, 0x6372bb19, </div><div class="line"><a name="l00441"></a><span class="lineno">  441</span>&#160;        0x0b07a7c8, 0xee0a6d70, 0x9e02fce1, 0xcdf7e2ec, 0xc03404cd, 0x28342f61, 0x9172fe9c, 0xe98583ff, </div><div class="line"><a name="l00442"></a><span class="lineno">  442</span>&#160;        0x8e4f1232, 0xeef28183, 0xc3fe3b1b, 0x4c6fad73, 0x3bb5fcbc, 0x2ec22005, 0xc58ef183, 0x7d1683b2, </div><div class="line"><a name="l00443"></a><span class="lineno">  443</span>&#160;        0xc6f34a26, 0xc1b2effa, 0x886b4238, 0x611fcfdc, 0xde355b3b, 0x6519035b, 0xbc34f4de, 0xf99c0238, </div><div class="line"><a name="l00444"></a><span class="lineno">  444</span>&#160;        0x61b46fc9, 0xd6e6c907, 0x7ad91d26, 0x91f7f7ee, 0x598cb0fa, 0xc186d91c, 0xaefe1309, 0x85139270, </div><div class="line"><a name="l00445"></a><span class="lineno">  445</span>&#160;        0xb4130c93, 0xbc437944, 0xf4fd4452, 0xe2d74dd3, 0x64f2e21e, 0x71f54bff, 0x5cae82ab, 0x9c9df69e, </div><div class="line"><a name="l00446"></a><span class="lineno">  446</span>&#160;        0xe86d2bc5, 0x22363a0d, 0xabc52197, 0x9b0deada, 0x1dbf9a42, 0xd5c4484e, 0x0abcd06b, 0xfa53ddef, </div><div class="line"><a name="l00447"></a><span class="lineno">  447</span>&#160;        0x3c1b20ee, 0x3fd59d7c, 0x25e41d2b, 0x669e1ef1, 0x6e6f52c3, 0x164df4fb, 0x7930e9e4, 0xe58857b6, </div><div class="line"><a name="l00448"></a><span class="lineno">  448</span>&#160;        0xac7d5f42, 0xd69f6d18, 0x7763cf1d, 0x55034004, 0x87f55ba5, 0x7e31cc7a, 0x7135c886, 0xefb4318a, </div><div class="line"><a name="l00449"></a><span class="lineno">  449</span>&#160;        0xed6a1e01, 0x2d9e6832, 0xa907600a, 0x918130c4, 0x6dc778f9, 0x71ad0038, 0x092999a3, 0x33cb8b7a, </div><div class="line"><a name="l00450"></a><span class="lineno">  450</span>&#160;        0x1a1db93d, 0x7140003c, 0x2a4ecea9, 0xf98d0acc, 0x0a8291cd, 0xcec97dcf, 0x8ec9b55a, 0x7f88a46b, </div><div class="line"><a name="l00451"></a><span class="lineno">  451</span>&#160;        0x4db5a851, 0xf44182e1, 0xc68a007e, 0x5e0dd902, 0x0bfd64b6, 0x45036c7a, 0x4e677d2c, 0x38532a3a, </div><div class="line"><a name="l00452"></a><span class="lineno">  452</span>&#160;        0x23ba4442, 0xcaf53ea6, 0x3bb45432, 0x9b7624c8, 0x917bdd64, 0xb1c0fd4c, 0xb38e8c33, 0x4c701c3a, </div><div class="line"><a name="l00453"></a><span class="lineno">  453</span>&#160;        0xcdad0657, 0xfccfec71, 0x9b1f5c3e, 0x4e46041f, 0x388147fb, 0x4cfdb477, 0xa52471f7, 0xa9a96910, </div><div class="line"><a name="l00454"></a><span class="lineno">  454</span>&#160;        0xb855322e, 0xdb6340d8, 0xa00ef092, 0x350511e3, 0x0abec1ff, 0xf9e3a26e, 0x7fb29f8c, 0x183023c3, </div><div class="line"><a name="l00455"></a><span class="lineno">  455</span>&#160;        0x587e38da, 0x0077d9b4, 0x763e4e4b, 0x94b2bbc1, 0x94c6651e, 0x77caf992, 0xeeaac023, 0x2a281bf6, </div><div class="line"><a name="l00456"></a><span class="lineno">  456</span>&#160;        0xb3a739c1, 0x22611682, 0x0ae8db58, 0x47a67cbe, 0xf9c9091b, 0x462d538c, 0xd72b0374, 0x6ae77f5e, </div><div class="line"><a name="l00457"></a><span class="lineno">  457</span>&#160;        0x62292c31, 0x1562a846, 0x505dc82d, 0xb854338a, 0xe49f5235, 0xc95b9117, 0x8ccf2dd5, 0xcacef403, </div><div class="line"><a name="l00458"></a><span class="lineno">  458</span>&#160;        0xec9d1810, 0xc6272b04, 0x5b3b71f9, 0xdc6b80d6, 0x3fdd4a8e, 0x9adb1e69, 0x62a69526, 0xd43161c1, </div><div class="line"><a name="l00459"></a><span class="lineno">  459</span>&#160;        0xa41d570d, 0x7938dad4, 0xa40e329c, 0xcff46aaa, 0x36ad004c, 0xf600c838, 0x1e425a31, 0xd951ae64, </div><div class="line"><a name="l00460"></a><span class="lineno">  460</span>&#160;        0xfdb23fce, 0xc9509d43, 0x687feb69, 0xedd1cc5e, 0x0b8cc3bd, 0xf64b10ef, 0x86b63142, 0xa3ab8829, </div><div class="line"><a name="l00461"></a><span class="lineno">  461</span>&#160;        0x555b2f74, 0x7c932665, 0xcb2c0f1c, 0xc01bd702, 0x29388839, 0xd2af05e4, 0x54504ac7, 0x8b758282, </div><div class="line"><a name="l00462"></a><span class="lineno">  462</span>&#160;        0x2846c0ba, 0x35c35f5c, 0x59160cc0, 0x46fd8251, 0x541fc68c, 0x9c86b022, 0xbb709987, 0x6a460e74, </div><div class="line"><a name="l00463"></a><span class="lineno">  463</span>&#160;        0x51a8a931, 0x09703fee, 0x1c217e6c, 0x3826e52c, 0x51aa691e, 0x0e423cfc, 0x99e9e316, 0x50c1217b, </div><div class="line"><a name="l00464"></a><span class="lineno">  464</span>&#160;        0x624816cd, 0xad9a95f9, 0xd5b80194, 0x88d9c0a0, 0xa1fe3075, 0xa577e231, 0x83f81d4a, 0x3f2fa457, </div><div class="line"><a name="l00465"></a><span class="lineno">  465</span>&#160;        0x1efc8ce0, 0xba8a4fe8, 0xb6855dfe, 0x72b0a66e, 0xded2fbab, 0xfbe58a30, 0xfafabe1c, 0x5d71a87e, </div><div class="line"><a name="l00466"></a><span class="lineno">  466</span>&#160;        0x2f741ef8, 0xc1fe86fe, 0xa6bbfde5, 0x30677f0d, 0x97d11d49, 0xf7a8443d, 0x0822e506, 0xa9f4614e, </div><div class="line"><a name="l00467"></a><span class="lineno">  467</span>&#160;        0x011e2a94, 0x838ff88c, 0xd68c8bb7, 0xc51eef6d, 0x49ea8ab4, 0xf2c3df5b, 0xb4e0735a, 0xb0d68749</div><div class="line"><a name="l00468"></a><span class="lineno">  468</span>&#160;        <span class="comment">// 0x2fe26dd4, ...</span></div><div class="line"><a name="l00469"></a><span class="lineno">  469</span>&#160;        <span class="comment">// 256 32bit words for the mantissa -- about 2464 valid decimal digits</span></div><div class="line"><a name="l00470"></a><span class="lineno">  470</span>&#160;        };</div><div class="line"><a name="l00471"></a><span class="lineno">  471</span>&#160;</div><div class="line"><a name="l00472"></a><span class="lineno">  472</span>&#160;        <span class="comment">// above value was calculated using Big&lt;1,400&gt; type on a 32bit platform</span></div><div class="line"><a name="l00473"></a><span class="lineno">  473</span>&#160;        <span class="comment">// and then the first 256 words were taken,</span></div><div class="line"><a name="l00474"></a><span class="lineno">  474</span>&#160;        <span class="comment">// the calculating was made by using ExpSurrounding0(1) method</span></div><div class="line"><a name="l00475"></a><span class="lineno">  475</span>&#160;        <span class="comment">// which took 1420 iterations</span></div><div class="line"><a name="l00476"></a><span class="lineno">  476</span>&#160;        <span class="comment">// (the result was compared with e taken from http://antwrp.gsfc.nasa.gov/htmltest/gifcity/e.2mil)</span></div><div class="line"><a name="l00477"></a><span class="lineno">  477</span>&#160;        <span class="comment">// (TTMATH_BUILTIN_VARIABLES_SIZE on 32bit platform should have the value 256,</span></div><div class="line"><a name="l00478"></a><span class="lineno">  478</span>&#160;        <span class="comment">// and on 64bit platform value 128 (256/2=128))</span></div><div class="line"><a name="l00479"></a><span class="lineno">  479</span>&#160;</div><div class="line"><a name="l00480"></a><span class="lineno">  480</span>&#160;        mantissa.<a class="code" href="classttmath_1_1_u_int.html#a12602f12aa9618ac8a24d151b9cea650">SetFromTable</a>(temp_table, <span class="keyword">sizeof</span>(temp_table) / <span class="keyword">sizeof</span>(<span class="keywordtype">int</span>));</div><div class="line"><a name="l00481"></a><span class="lineno">  481</span>&#160;        exponent = -<a class="code" href="namespacettmath.html#a4b0a5dcba29a2c7a0abc8b4403a25ac4">sint</a>(man)*<a class="code" href="namespacettmath.html#a4b0a5dcba29a2c7a0abc8b4403a25ac4">sint</a>(<a class="code" href="ttmathtypes_8h.html#aef936ab7a0d7f0c34a9a794b3072cf6a">TTMATH_BITS_PER_UINT</a>) + 2;</div><div class="line"><a name="l00482"></a><span class="lineno">  482</span>&#160;        info = 0;</div><div class="line"><a name="l00483"></a><span class="lineno">  483</span>&#160;    }</div><div class="ttc" id="classttmath_1_1_u_int_html_a12602f12aa9618ac8a24d151b9cea650"><div class="ttname"><a href="classttmath_1_1_u_int.html#a12602f12aa9618ac8a24d151b9cea650">ttmath::UInt::SetFromTable</a></div><div class="ttdeci">void SetFromTable(const unsigned int *temp_table, uint temp_table_len)</div><div class="ttdef"><b>Definition:</b> <a href="ttmathuint_8h_source.html#l00325">ttmathuint.h:325</a></div></div>
<div class="ttc" id="ttmathtypes_8h_html_aef936ab7a0d7f0c34a9a794b3072cf6a"><div class="ttname"><a href="ttmathtypes_8h.html#aef936ab7a0d7f0c34a9a794b3072cf6a">TTMATH_BITS_PER_UINT</a></div><div class="ttdeci">#define TTMATH_BITS_PER_UINT</div><div class="ttdef"><b>Definition:</b> <a href="ttmathtypes_8h_source.html#l00253">ttmathtypes.h:253</a></div></div>
<div class="ttc" id="namespacettmath_html_a4b0a5dcba29a2c7a0abc8b4403a25ac4"><div class="ttname"><a href="namespacettmath.html#a4b0a5dcba29a2c7a0abc8b4403a25ac4">ttmath::sint</a></div><div class="ttdeci">int64_t sint</div><div class="ttdef"><b>Definition:</b> <a href="ttmathtypes_8h_source.html#l00243">ttmathtypes.h:243</a></div></div>
</div><!-- fragment -->
<p class="reference">References <a class="el" href="ttmathuint_8h_source.html#l00325">ttmath::UInt&lt; value_size &gt;::SetFromTable()</a>, and <a class="el" href="ttmathtypes_8h_source.html#l00253">TTMATH_BITS_PER_UINT</a>.</p>

</div>
</div>
<a id="ae851f864ffab7964931e6b0f7632a377"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae851f864ffab7964931e6b0f7632a377">&#9670;&nbsp;</a></span>SetInfoBit()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;uint exp, uint man&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classttmath_1_1_big.html">ttmath::Big</a>&lt; exp, man &gt;::SetInfoBit </td>
          <td>(</td>
          <td class="paramtype">unsigned char&#160;</td>
          <td class="paramname"><em>bit</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>this method sets a specific bit in the 'info' variable</p>
<p>bit is one of: TTMATH_BIG_SIGN, TTMATH_BIG_NAN etc. </p>

<p class="definition">Definition at line <a class="el" href="ttmathbig_8h_source.html#l00236">236</a> of file <a class="el" href="ttmathbig_8h_source.html">ttmathbig.h</a>.</p>
<div class="fragment"><div class="line"><a name="l00237"></a><span class="lineno">  237</span>&#160;    {</div><div class="line"><a name="l00238"></a><span class="lineno">  238</span>&#160;        info = info | bit;</div><div class="line"><a name="l00239"></a><span class="lineno">  239</span>&#160;    }</div></div><!-- fragment -->
<p class="reference">Referenced by <a class="el" href="ttmathbig_8h_source.html#l00740">ttmath::Big&lt; exp, man &gt;::ChangeSign()</a>, <a class="el" href="ttmathbig_8h_source.html#l00296">ttmath::Big&lt; exp, man &gt;::SetNan()</a>, and <a class="el" href="ttmathbig_8h_source.html#l00726">ttmath::Big&lt; exp, man &gt;::SetSign()</a>.</p>

</div>
</div>
<a id="ac205056b86c652cb859287118a7cfae9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac205056b86c652cb859287118a7cfae9">&#9670;&nbsp;</a></span>SetLn10()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;uint exp, uint man&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classttmath_1_1_big.html">ttmath::Big</a>&lt; exp, man &gt;::SetLn10 </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>this method sets the value of ln(10) the natural logarithm from 10</p>
<p>I introduced this constant especially to make the conversion <a class="el" href="classttmath_1_1_big.html#a3d8da6a88dda87845a13a13c8abfcfa4">ToString()</a> being faster. In fact the method <a class="el" href="classttmath_1_1_big.html#a3d8da6a88dda87845a13a13c8abfcfa4">ToString()</a> is keeping values of logarithms it has calculated but it must calculate the logarithm at least once. If a program, which uses this library, is running for a long time this would be ok, but for programs which are running shorter, for example for CGI applications which only once are printing values, this would be much inconvenience. Then if we're printing with base (radix) 10 and the mantissa of our value is smaller than or equal to TTMATH_BUILTIN_VARIABLES_SIZE we don't calculate the logarithm but take it from this constant. </p>

<p class="definition">Definition at line <a class="el" href="ttmathbig_8h_source.html#l00558">558</a> of file <a class="el" href="ttmathbig_8h_source.html">ttmathbig.h</a>.</p>
<div class="fragment"><div class="line"><a name="l00559"></a><span class="lineno">  559</span>&#160;    {</div><div class="line"><a name="l00560"></a><span class="lineno">  560</span>&#160;    <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> temp_table[] = {</div><div class="line"><a name="l00561"></a><span class="lineno">  561</span>&#160;        0x935d8ddd, 0xaaa8ac16, 0xea56d62b, 0x82d30a28, 0xe28fecf9, 0xda5df90e, 0x83c61e82, 0x01f02d72, </div><div class="line"><a name="l00562"></a><span class="lineno">  562</span>&#160;        0x962f02d7, 0xb1a8105c, 0xcc70cbc0, 0x2c5f0d68, 0x2c622418, 0x410be2da, 0xfb8f7884, 0x02e516d6, </div><div class="line"><a name="l00563"></a><span class="lineno">  563</span>&#160;        0x782cf8a2, 0x8a8c911e, 0x765aa6c3, 0xb0d831fb, 0xef66ceb0, 0x4ab3c6fa, 0x5161bb49, 0xd219c7bb, </div><div class="line"><a name="l00564"></a><span class="lineno">  564</span>&#160;        0xca67b35b, 0x23605085, 0x8e93368d, 0x44789c4f, 0x5b08b057, 0xd5ede20f, 0x469ea58e, 0x9305e981, </div><div class="line"><a name="l00565"></a><span class="lineno">  565</span>&#160;        0xe2478fca, 0xad3aee98, 0x9cd5b42e, 0x6a271619, 0xa47ecb26, 0x978c5d4f, 0xdb1d28ea, 0x57d4fdc0, </div><div class="line"><a name="l00566"></a><span class="lineno">  566</span>&#160;        0xe40bf3cc, 0x1e14126a, 0x45765cde, 0x268339db, 0xf47fa96d, 0xeb271060, 0xaf88486e, 0xa9b7401e, </div><div class="line"><a name="l00567"></a><span class="lineno">  567</span>&#160;        0x3dfd3c51, 0x748e6d6e, 0x3848c8d2, 0x5faf1bca, 0xe88047f1, 0x7b0d9b50, 0xa949eaaa, 0xdf69e8a5, </div><div class="line"><a name="l00568"></a><span class="lineno">  568</span>&#160;        0xf77e3760, 0x4e943960, 0xe38a5700, 0xffde2db1, 0xad6bfbff, 0xd821ba0a, 0x4cb0466d, 0x61ba648e, </div><div class="line"><a name="l00569"></a><span class="lineno">  569</span>&#160;        0xef99c8e5, 0xf6974f36, 0x3982a78c, 0xa45ddfc8, 0x09426178, 0x19127a6e, 0x3b70fcda, 0x2d732d47, </div><div class="line"><a name="l00570"></a><span class="lineno">  570</span>&#160;        0xb5e4b1c8, 0xc0e5a10a, 0xaa6604a5, 0x324ec3dc, 0xbc64ea80, 0x6e198566, 0x1f1d366c, 0x20663834, </div><div class="line"><a name="l00571"></a><span class="lineno">  571</span>&#160;        0x4d5e843f, 0x20642b97, 0x0a62d18e, 0x478f7bd5, 0x8fcd0832, 0x4a7b32a6, 0xdef85a05, 0xeb56323a, </div><div class="line"><a name="l00572"></a><span class="lineno">  572</span>&#160;        0x421ef5e0, 0xb00410a0, 0xa0d9c260, 0x794a976f, 0xf6ff363d, 0xb00b6b33, 0xf42c58de, 0xf8a3c52d, </div><div class="line"><a name="l00573"></a><span class="lineno">  573</span>&#160;        0xed69b13d, 0xc1a03730, 0xb6524dc1, 0x8c167e86, 0x99d6d20e, 0xa2defd2b, 0xd006f8b4, 0xbe145a2a, </div><div class="line"><a name="l00574"></a><span class="lineno">  574</span>&#160;        0xdf3ccbb3, 0x189da49d, 0xbc1261c8, 0xb3e4daad, 0x6a36cecc, 0xb2d5ae5b, 0x89bf752f, 0xb5dfb353, </div><div class="line"><a name="l00575"></a><span class="lineno">  575</span>&#160;        0xff3065c4, 0x0cfceec8, 0x1be5a9a9, 0x67fddc57, 0xc4b83301, 0x006bf062, 0x4b40ed7a, 0x56c6cdcd, </div><div class="line"><a name="l00576"></a><span class="lineno">  576</span>&#160;        0xa2d6fe91, 0x388e9e3e, 0x48a93f5f, 0x5e3b6eb4, 0xb81c4a5b, 0x53d49ea6, 0x8e668aea, 0xba83c7f8, </div><div class="line"><a name="l00577"></a><span class="lineno">  577</span>&#160;        0xfb5f06c3, 0x58ac8f70, 0xfa9d8c59, 0x8c574502, 0xbaf54c96, 0xc84911f0, 0x0482d095, 0x1a0af022, </div><div class="line"><a name="l00578"></a><span class="lineno">  578</span>&#160;        0xabbab080, 0xec97efd3, 0x671e4e0e, 0x52f166b6, 0xcd5cd226, 0x0dc67795, 0x2e1e34a3, 0xf799677f, </div><div class="line"><a name="l00579"></a><span class="lineno">  579</span>&#160;        0x2c1d48f1, 0x2944b6c5, 0x2ba1307e, 0x704d67f9, 0x1c1035e4, 0x4e927c63, 0x03cf12bf, 0xe2cd2e31, </div><div class="line"><a name="l00580"></a><span class="lineno">  580</span>&#160;        0xf8ee4843, 0x344d51b0, 0xf37da42b, 0x9f0b0fd9, 0x134fb2d9, 0xf815e490, 0xd966283f, 0x23962766, </div><div class="line"><a name="l00581"></a><span class="lineno">  581</span>&#160;        0xeceab1e4, 0xf3b5fc86, 0x468127e2, 0xb606d10d, 0x3a45f4b6, 0xb776102d, 0x2fdbb420, 0x80c8fa84, </div><div class="line"><a name="l00582"></a><span class="lineno">  582</span>&#160;        0xd0ff9f45, 0xc58aef38, 0xdb2410fd, 0x1f1cebad, 0x733b2281, 0x52ca5f36, 0xddf29daa, 0x544334b8, </div><div class="line"><a name="l00583"></a><span class="lineno">  583</span>&#160;        0xdeeaf659, 0x4e462713, 0x1ed485b4, 0x6a0822e1, 0x28db471c, 0xa53938a8, 0x44c3bef7, 0xf35215c8, </div><div class="line"><a name="l00584"></a><span class="lineno">  584</span>&#160;        0xb382bc4e, 0x3e4c6f15, 0x6285f54c, 0x17ab408e, 0xccbf7f5e, 0xd16ab3f6, 0xced2846d, 0xf457e14f, </div><div class="line"><a name="l00585"></a><span class="lineno">  585</span>&#160;        0xbb45d9c5, 0x646ad497, 0xac697494, 0x145de32e, 0x93907128, 0xd263d521, 0x79efb424, 0xd64651d6, </div><div class="line"><a name="l00586"></a><span class="lineno">  586</span>&#160;        0xebc0c9f0, 0xbb583a44, 0xc6412c84, 0x85bb29a6, 0x4d31a2cd, 0x92954469, 0xa32b1abd, 0xf7f5202c, </div><div class="line"><a name="l00587"></a><span class="lineno">  587</span>&#160;        0xa4aa6c93, 0x2e9b53cf, 0x385ab136, 0x2741f356, 0x5de9c065, 0x6009901c, 0x88abbdd8, 0x74efcf73, </div><div class="line"><a name="l00588"></a><span class="lineno">  588</span>&#160;        0x3f761ad4, 0x35f3c083, 0xfd6b8ee0, 0x0bef11c7, 0xc552a89d, 0x58ce4a21, 0xd71e54f2, 0x4157f6c7, </div><div class="line"><a name="l00589"></a><span class="lineno">  589</span>&#160;        0xd4622316, 0xe98956d7, 0x450027de, 0xcbd398d8, 0x4b98b36a, 0x0724c25c, 0xdb237760, 0xe9324b68, </div><div class="line"><a name="l00590"></a><span class="lineno">  590</span>&#160;        0x7523e506, 0x8edad933, 0x92197f00, 0xb853a326, 0xb330c444, 0x65129296, 0x34bc0670, 0xe177806d, </div><div class="line"><a name="l00591"></a><span class="lineno">  591</span>&#160;        0xe338dac4, 0x5537492a, 0xe19add83, 0xcf45000f, 0x5b423bce, 0x6497d209, 0xe30e18a1, 0x3cbf0687, </div><div class="line"><a name="l00592"></a><span class="lineno">  592</span>&#160;        0x67973103, 0xd9485366, 0x81506bba, 0x2e93a9a4, 0x7dd59d3f, 0xf17cd746, 0x8c2075be, 0x552a4348 <span class="comment">// last one was: 0x552a4347</span></div><div class="line"><a name="l00593"></a><span class="lineno">  593</span>&#160;        <span class="comment">// 0xb4a638ef, ...</span></div><div class="line"><a name="l00594"></a><span class="lineno">  594</span>&#160;        <span class="comment">//(the last word 0x552a4347 was rounded up because the next one is 0xb4a638ef -- first bit is one 0xb..)</span></div><div class="line"><a name="l00595"></a><span class="lineno">  595</span>&#160;        <span class="comment">// 256 32bit words for the mantissa -- about 2464 valid digits (decimal)</span></div><div class="line"><a name="l00596"></a><span class="lineno">  596</span>&#160;        };  </div><div class="line"><a name="l00597"></a><span class="lineno">  597</span>&#160;</div><div class="line"><a name="l00598"></a><span class="lineno">  598</span>&#160;        <span class="comment">// above value was calculated using Big&lt;1,400&gt; type on a 32bit platform</span></div><div class="line"><a name="l00599"></a><span class="lineno">  599</span>&#160;        <span class="comment">// and then the first 256 32bit words were taken,</span></div><div class="line"><a name="l00600"></a><span class="lineno">  600</span>&#160;        <span class="comment">// the calculating was made by using LnSurrounding1(10) method</span></div><div class="line"><a name="l00601"></a><span class="lineno">  601</span>&#160;        <span class="comment">// which took 22080 iterations</span></div><div class="line"><a name="l00602"></a><span class="lineno">  602</span>&#160;        <span class="comment">// (the result was compared with ln(10) taken from http://ja0hxv.calico.jp/pai/estart.html)</span></div><div class="line"><a name="l00603"></a><span class="lineno">  603</span>&#160;        <span class="comment">// (the formula used in LnSurrounding1(x) converges badly when</span></div><div class="line"><a name="l00604"></a><span class="lineno">  604</span>&#160;        <span class="comment">// the x is greater than one but in fact we can use it, only the</span></div><div class="line"><a name="l00605"></a><span class="lineno">  605</span>&#160;        <span class="comment">// number of iterations will be greater)</span></div><div class="line"><a name="l00606"></a><span class="lineno">  606</span>&#160;        <span class="comment">// (TTMATH_BUILTIN_VARIABLES_SIZE on 32bit platform should have the value 256,</span></div><div class="line"><a name="l00607"></a><span class="lineno">  607</span>&#160;        <span class="comment">// and on 64bit platform value 128 (256/2=128))</span></div><div class="line"><a name="l00608"></a><span class="lineno">  608</span>&#160;</div><div class="line"><a name="l00609"></a><span class="lineno">  609</span>&#160;        mantissa.<a class="code" href="classttmath_1_1_u_int.html#a12602f12aa9618ac8a24d151b9cea650">SetFromTable</a>(temp_table, <span class="keyword">sizeof</span>(temp_table) / <span class="keyword">sizeof</span>(<span class="keywordtype">int</span>));</div><div class="line"><a name="l00610"></a><span class="lineno">  610</span>&#160;        exponent = -<a class="code" href="namespacettmath.html#a4b0a5dcba29a2c7a0abc8b4403a25ac4">sint</a>(man)*<a class="code" href="namespacettmath.html#a4b0a5dcba29a2c7a0abc8b4403a25ac4">sint</a>(<a class="code" href="ttmathtypes_8h.html#aef936ab7a0d7f0c34a9a794b3072cf6a">TTMATH_BITS_PER_UINT</a>) + 2;</div><div class="line"><a name="l00611"></a><span class="lineno">  611</span>&#160;        info = 0;</div><div class="line"><a name="l00612"></a><span class="lineno">  612</span>&#160;    }</div><div class="ttc" id="classttmath_1_1_u_int_html_a12602f12aa9618ac8a24d151b9cea650"><div class="ttname"><a href="classttmath_1_1_u_int.html#a12602f12aa9618ac8a24d151b9cea650">ttmath::UInt::SetFromTable</a></div><div class="ttdeci">void SetFromTable(const unsigned int *temp_table, uint temp_table_len)</div><div class="ttdef"><b>Definition:</b> <a href="ttmathuint_8h_source.html#l00325">ttmathuint.h:325</a></div></div>
<div class="ttc" id="ttmathtypes_8h_html_aef936ab7a0d7f0c34a9a794b3072cf6a"><div class="ttname"><a href="ttmathtypes_8h.html#aef936ab7a0d7f0c34a9a794b3072cf6a">TTMATH_BITS_PER_UINT</a></div><div class="ttdeci">#define TTMATH_BITS_PER_UINT</div><div class="ttdef"><b>Definition:</b> <a href="ttmathtypes_8h_source.html#l00253">ttmathtypes.h:253</a></div></div>
<div class="ttc" id="namespacettmath_html_a4b0a5dcba29a2c7a0abc8b4403a25ac4"><div class="ttname"><a href="namespacettmath.html#a4b0a5dcba29a2c7a0abc8b4403a25ac4">ttmath::sint</a></div><div class="ttdeci">int64_t sint</div><div class="ttdef"><b>Definition:</b> <a href="ttmathtypes_8h_source.html#l00243">ttmathtypes.h:243</a></div></div>
</div><!-- fragment -->
<p class="reference">References <a class="el" href="ttmathuint_8h_source.html#l00325">ttmath::UInt&lt; value_size &gt;::SetFromTable()</a>, and <a class="el" href="ttmathtypes_8h_source.html#l00253">TTMATH_BITS_PER_UINT</a>.</p>

</div>
</div>
<a id="ac34df29b0b14bee8687eefc07b8698af"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac34df29b0b14bee8687eefc07b8698af">&#9670;&nbsp;</a></span>SetLn2()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;uint exp, uint man&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classttmath_1_1_big.html">ttmath::Big</a>&lt; exp, man &gt;::SetLn2 </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>this method sets the value of ln(2) the natural logarithm from 2 </p>

<p class="definition">Definition at line <a class="el" href="ttmathbig_8h_source.html#l00490">490</a> of file <a class="el" href="ttmathbig_8h_source.html">ttmathbig.h</a>.</p>
<div class="fragment"><div class="line"><a name="l00491"></a><span class="lineno">  491</span>&#160;    {</div><div class="line"><a name="l00492"></a><span class="lineno">  492</span>&#160;    <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> temp_table[] = {</div><div class="line"><a name="l00493"></a><span class="lineno">  493</span>&#160;        0xb17217f7, 0xd1cf79ab, 0xc9e3b398, 0x03f2f6af, 0x40f34326, 0x7298b62d, 0x8a0d175b, 0x8baafa2b, </div><div class="line"><a name="l00494"></a><span class="lineno">  494</span>&#160;        0xe7b87620, 0x6debac98, 0x559552fb, 0x4afa1b10, 0xed2eae35, 0xc1382144, 0x27573b29, 0x1169b825, </div><div class="line"><a name="l00495"></a><span class="lineno">  495</span>&#160;        0x3e96ca16, 0x224ae8c5, 0x1acbda11, 0x317c387e, 0xb9ea9bc3, 0xb136603b, 0x256fa0ec, 0x7657f74b, </div><div class="line"><a name="l00496"></a><span class="lineno">  496</span>&#160;        0x72ce87b1, 0x9d6548ca, 0xf5dfa6bd, 0x38303248, 0x655fa187, 0x2f20e3a2, 0xda2d97c5, 0x0f3fd5c6, </div><div class="line"><a name="l00497"></a><span class="lineno">  497</span>&#160;        0x07f4ca11, 0xfb5bfb90, 0x610d30f8, 0x8fe551a2, 0xee569d6d, 0xfc1efa15, 0x7d2e23de, 0x1400b396, </div><div class="line"><a name="l00498"></a><span class="lineno">  498</span>&#160;        0x17460775, 0xdb8990e5, 0xc943e732, 0xb479cd33, 0xcccc4e65, 0x9393514c, 0x4c1a1e0b, 0xd1d6095d, </div><div class="line"><a name="l00499"></a><span class="lineno">  499</span>&#160;        0x25669b33, 0x3564a337, 0x6a9c7f8a, 0x5e148e82, 0x074db601, 0x5cfe7aa3, 0x0c480a54, 0x17350d2c, </div><div class="line"><a name="l00500"></a><span class="lineno">  500</span>&#160;        0x955d5179, 0xb1e17b9d, 0xae313cdb, 0x6c606cb1, 0x078f735d, 0x1b2db31b, 0x5f50b518, 0x5064c18b, </div><div class="line"><a name="l00501"></a><span class="lineno">  501</span>&#160;        0x4d162db3, 0xb365853d, 0x7598a195, 0x1ae273ee, 0x5570b6c6, 0x8f969834, 0x96d4e6d3, 0x30af889b, </div><div class="line"><a name="l00502"></a><span class="lineno">  502</span>&#160;        0x44a02554, 0x731cdc8e, 0xa17293d1, 0x228a4ef9, 0x8d6f5177, 0xfbcf0755, 0x268a5c1f, 0x9538b982, </div><div class="line"><a name="l00503"></a><span class="lineno">  503</span>&#160;        0x61affd44, 0x6b1ca3cf, 0x5e9222b8, 0x8c66d3c5, 0x422183ed, 0xc9942109, 0x0bbb16fa, 0xf3d949f2, </div><div class="line"><a name="l00504"></a><span class="lineno">  504</span>&#160;        0x36e02b20, 0xcee886b9, 0x05c128d5, 0x3d0bd2f9, 0x62136319, 0x6af50302, 0x0060e499, 0x08391a0c, </div><div class="line"><a name="l00505"></a><span class="lineno">  505</span>&#160;        0x57339ba2, 0xbeba7d05, 0x2ac5b61c, 0xc4e9207c, 0xef2f0ce2, 0xd7373958, 0xd7622658, 0x901e646a, </div><div class="line"><a name="l00506"></a><span class="lineno">  506</span>&#160;        0x95184460, 0xdc4e7487, 0x156e0c29, 0x2413d5e3, 0x61c1696d, 0xd24aaebd, 0x473826fd, 0xa0c238b9, </div><div class="line"><a name="l00507"></a><span class="lineno">  507</span>&#160;        0x0ab111bb, 0xbd67c724, 0x972cd18b, 0xfbbd9d42, 0x6c472096, 0xe76115c0, 0x5f6f7ceb, 0xac9f45ae, </div><div class="line"><a name="l00508"></a><span class="lineno">  508</span>&#160;        0xcecb72f1, 0x9c38339d, 0x8f682625, 0x0dea891e, 0xf07afff3, 0xa892374e, 0x175eb4af, 0xc8daadd8, </div><div class="line"><a name="l00509"></a><span class="lineno">  509</span>&#160;        0x85db6ab0, 0x3a49bd0d, 0xc0b1b31d, 0x8a0e23fa, 0xc5e5767d, 0xf95884e0, 0x6425a415, 0x26fac51c, </div><div class="line"><a name="l00510"></a><span class="lineno">  510</span>&#160;        0x3ea8449f, 0xe8f70edd, 0x062b1a63, 0xa6c4c60c, 0x52ab3316, 0x1e238438, 0x897a39ce, 0x78b63c9f, </div><div class="line"><a name="l00511"></a><span class="lineno">  511</span>&#160;        0x364f5b8a, 0xef22ec2f, 0xee6e0850, 0xeca42d06, 0xfb0c75df, 0x5497e00c, 0x554b03d7, 0xd2874a00, </div><div class="line"><a name="l00512"></a><span class="lineno">  512</span>&#160;        0x0ca8f58d, 0x94f0341c, 0xbe2ec921, 0x56c9f949, 0xdb4a9316, 0xf281501e, 0x53daec3f, 0x64f1b783, </div><div class="line"><a name="l00513"></a><span class="lineno">  513</span>&#160;        0x154c6032, 0x0e2ff793, 0x33ce3573, 0xfacc5fdc, 0xf1178590, 0x3155bbd9, 0x0f023b22, 0x0224fcd8, </div><div class="line"><a name="l00514"></a><span class="lineno">  514</span>&#160;        0x471bf4f4, 0x45f0a88a, 0x14f0cd97, 0x6ea354bb, 0x20cdb5cc, 0xb3db2392, 0x88d58655, 0x4e2a0e8a, </div><div class="line"><a name="l00515"></a><span class="lineno">  515</span>&#160;        0x6fe51a8c, 0xfaa72ef2, 0xad8a43dc, 0x4212b210, 0xb779dfe4, 0x9d7307cc, 0x846532e4, 0xb9694eda, </div><div class="line"><a name="l00516"></a><span class="lineno">  516</span>&#160;        0xd162af05, 0x3b1751f3, 0xa3d091f6, 0x56658154, 0x12b5e8c2, 0x02461069, 0xac14b958, 0x784934b8, </div><div class="line"><a name="l00517"></a><span class="lineno">  517</span>&#160;        0xd6cce1da, 0xa5053701, 0x1aa4fb42, 0xb9a3def4, 0x1bda1f85, 0xef6fdbf2, 0xf2d89d2a, 0x4b183527, </div><div class="line"><a name="l00518"></a><span class="lineno">  518</span>&#160;        0x8fd94057, 0x89f45681, 0x2b552879, 0xa6168695, 0xc12963b0, 0xff01eaab, 0x73e5b5c1, 0x585318e7, </div><div class="line"><a name="l00519"></a><span class="lineno">  519</span>&#160;        0x624f14a5, 0x1a4a026b, 0x68082920, 0x57fd99b6, 0x6dc085a9, 0x8ac8d8ca, 0xf9eeeea9, 0x8a2400ca, </div><div class="line"><a name="l00520"></a><span class="lineno">  520</span>&#160;        0xc95f260f, 0xd10036f9, 0xf91096ac, 0x3195220a, 0x1a356b2a, 0x73b7eaad, 0xaf6d6058, 0x71ef7afb, </div><div class="line"><a name="l00521"></a><span class="lineno">  521</span>&#160;        0x80bc4234, 0x33562e94, 0xb12dfab4, 0x14451579, 0xdf59eae0, 0x51707062, 0x4012a829, 0x62c59cab, </div><div class="line"><a name="l00522"></a><span class="lineno">  522</span>&#160;        0x347f8304, 0xd889659e, 0x5a9139db, 0x14efcc30, 0x852be3e8, 0xfc99f14d, 0x1d822dd6, 0xe2f76797, </div><div class="line"><a name="l00523"></a><span class="lineno">  523</span>&#160;        0xe30219c8, 0xaa9ce884, 0x8a886eb3, 0xc87b7295, 0x988012e8, 0x314186ed, 0xbaf86856, 0xccd3c3b6, </div><div class="line"><a name="l00524"></a><span class="lineno">  524</span>&#160;        0xee94e62f, 0x110a6783, 0xd2aae89c, 0xcc3b76fc, 0x435a0ce1, 0x34c2838f, 0xd571ec6c, 0x1366a993 <span class="comment">// last one was: 0x1366a992</span></div><div class="line"><a name="l00525"></a><span class="lineno">  525</span>&#160;        <span class="comment">//0xcbb9ac40, ...</span></div><div class="line"><a name="l00526"></a><span class="lineno">  526</span>&#160;        <span class="comment">// (the last word 0x1366a992 was rounded up because the next one is 0xcbb9ac40 -- first bit is one 0xc..)</span></div><div class="line"><a name="l00527"></a><span class="lineno">  527</span>&#160;        <span class="comment">// 256 32bit words for the mantissa -- about 2464 valid decimal digits</span></div><div class="line"><a name="l00528"></a><span class="lineno">  528</span>&#160;        };  </div><div class="line"><a name="l00529"></a><span class="lineno">  529</span>&#160;</div><div class="line"><a name="l00530"></a><span class="lineno">  530</span>&#160;        <span class="comment">// above value was calculated using Big&lt;1,400&gt; type on a 32bit platform</span></div><div class="line"><a name="l00531"></a><span class="lineno">  531</span>&#160;        <span class="comment">// and then the first 256 words were taken,</span></div><div class="line"><a name="l00532"></a><span class="lineno">  532</span>&#160;        <span class="comment">// the calculating was made by using LnSurrounding1(2) method</span></div><div class="line"><a name="l00533"></a><span class="lineno">  533</span>&#160;        <span class="comment">// which took 4035 iterations</span></div><div class="line"><a name="l00534"></a><span class="lineno">  534</span>&#160;        <span class="comment">// (the result was compared with ln(2) taken from http://ja0hxv.calico.jp/pai/estart.html)</span></div><div class="line"><a name="l00535"></a><span class="lineno">  535</span>&#160;        <span class="comment">// (TTMATH_BUILTIN_VARIABLES_SIZE on 32bit platform should have the value 256,</span></div><div class="line"><a name="l00536"></a><span class="lineno">  536</span>&#160;        <span class="comment">// and on 64bit platform value 128 (256/2=128))</span></div><div class="line"><a name="l00537"></a><span class="lineno">  537</span>&#160;</div><div class="line"><a name="l00538"></a><span class="lineno">  538</span>&#160;        mantissa.<a class="code" href="classttmath_1_1_u_int.html#a12602f12aa9618ac8a24d151b9cea650">SetFromTable</a>(temp_table, <span class="keyword">sizeof</span>(temp_table) / <span class="keyword">sizeof</span>(<span class="keywordtype">int</span>));</div><div class="line"><a name="l00539"></a><span class="lineno">  539</span>&#160;        exponent = -<a class="code" href="namespacettmath.html#a4b0a5dcba29a2c7a0abc8b4403a25ac4">sint</a>(man)*<a class="code" href="namespacettmath.html#a4b0a5dcba29a2c7a0abc8b4403a25ac4">sint</a>(<a class="code" href="ttmathtypes_8h.html#aef936ab7a0d7f0c34a9a794b3072cf6a">TTMATH_BITS_PER_UINT</a>);</div><div class="line"><a name="l00540"></a><span class="lineno">  540</span>&#160;        info = 0;</div><div class="line"><a name="l00541"></a><span class="lineno">  541</span>&#160;    }</div><div class="ttc" id="classttmath_1_1_u_int_html_a12602f12aa9618ac8a24d151b9cea650"><div class="ttname"><a href="classttmath_1_1_u_int.html#a12602f12aa9618ac8a24d151b9cea650">ttmath::UInt::SetFromTable</a></div><div class="ttdeci">void SetFromTable(const unsigned int *temp_table, uint temp_table_len)</div><div class="ttdef"><b>Definition:</b> <a href="ttmathuint_8h_source.html#l00325">ttmathuint.h:325</a></div></div>
<div class="ttc" id="ttmathtypes_8h_html_aef936ab7a0d7f0c34a9a794b3072cf6a"><div class="ttname"><a href="ttmathtypes_8h.html#aef936ab7a0d7f0c34a9a794b3072cf6a">TTMATH_BITS_PER_UINT</a></div><div class="ttdeci">#define TTMATH_BITS_PER_UINT</div><div class="ttdef"><b>Definition:</b> <a href="ttmathtypes_8h_source.html#l00253">ttmathtypes.h:253</a></div></div>
<div class="ttc" id="namespacettmath_html_a4b0a5dcba29a2c7a0abc8b4403a25ac4"><div class="ttname"><a href="namespacettmath.html#a4b0a5dcba29a2c7a0abc8b4403a25ac4">ttmath::sint</a></div><div class="ttdeci">int64_t sint</div><div class="ttdef"><b>Definition:</b> <a href="ttmathtypes_8h_source.html#l00243">ttmathtypes.h:243</a></div></div>
</div><!-- fragment -->
<p class="reference">References <a class="el" href="ttmathuint_8h_source.html#l00325">ttmath::UInt&lt; value_size &gt;::SetFromTable()</a>, and <a class="el" href="ttmathtypes_8h_source.html#l00253">TTMATH_BITS_PER_UINT</a>.</p>

<p class="reference">Referenced by <a class="el" href="ttmathbig_8h_source.html#l02144">ttmath::Big&lt; exp, man &gt;::Ln()</a>.</p>

</div>
</div>
<a id="a4a4d897f3a1cd7eea680884dbf327ba6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4a4d897f3a1cd7eea680884dbf327ba6">&#9670;&nbsp;</a></span>SetMax()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;uint exp, uint man&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classttmath_1_1_big.html">ttmath::Big</a>&lt; exp, man &gt;::SetMax </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>this method sets the maximum value which can be held in this type </p>

<p class="definition">Definition at line <a class="el" href="ttmathbig_8h_source.html#l00618">618</a> of file <a class="el" href="ttmathbig_8h_source.html">ttmathbig.h</a>.</p>
<div class="fragment"><div class="line"><a name="l00619"></a><span class="lineno">  619</span>&#160;    {</div><div class="line"><a name="l00620"></a><span class="lineno">  620</span>&#160;        info = 0;</div><div class="line"><a name="l00621"></a><span class="lineno">  621</span>&#160;        mantissa.<a class="code" href="classttmath_1_1_u_int.html#a7fdeb0ac1b5fdd397f03fcfc9080488d">SetMax</a>();</div><div class="line"><a name="l00622"></a><span class="lineno">  622</span>&#160;        exponent.<a class="code" href="classttmath_1_1_int.html#a5969b824a40d631c318dd027755028fd">SetMax</a>();</div><div class="line"><a name="l00623"></a><span class="lineno">  623</span>&#160;</div><div class="line"><a name="l00624"></a><span class="lineno">  624</span>&#160;        <span class="comment">// we don&#39;t have to use &#39;Standardizing()&#39; because the last bit from</span></div><div class="line"><a name="l00625"></a><span class="lineno">  625</span>&#160;        <span class="comment">// the mantissa is set</span></div><div class="line"><a name="l00626"></a><span class="lineno">  626</span>&#160;    }</div><div class="ttc" id="classttmath_1_1_u_int_html_a7fdeb0ac1b5fdd397f03fcfc9080488d"><div class="ttname"><a href="classttmath_1_1_u_int.html#a7fdeb0ac1b5fdd397f03fcfc9080488d">ttmath::UInt::SetMax</a></div><div class="ttdeci">void SetMax()</div><div class="ttdef"><b>Definition:</b> <a href="ttmathuint_8h_source.html#l00215">ttmathuint.h:215</a></div></div>
<div class="ttc" id="classttmath_1_1_int_html_a5969b824a40d631c318dd027755028fd"><div class="ttname"><a href="classttmath_1_1_int.html#a5969b824a40d631c318dd027755028fd">ttmath::Int::SetMax</a></div><div class="ttdeci">void SetMax()</div><div class="ttdef"><b>Definition:</b> <a href="ttmathint_8h_source.html#l00071">ttmathint.h:71</a></div></div>
</div><!-- fragment -->
<p class="reference">References <a class="el" href="ttmathint_8h_source.html#l00071">ttmath::Int&lt; value_size &gt;::SetMax()</a>, and <a class="el" href="ttmathuint_8h_source.html#l00215">ttmath::UInt&lt; value_size &gt;::SetMax()</a>.</p>

</div>
</div>
<a id="acb724c5ab24678fd24bc93189fef3973"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acb724c5ab24678fd24bc93189fef3973">&#9670;&nbsp;</a></span>SetMin()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;uint exp, uint man&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classttmath_1_1_big.html">ttmath::Big</a>&lt; exp, man &gt;::SetMin </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>this method sets the minimum value which can be held in this type </p>

<p class="definition">Definition at line <a class="el" href="ttmathbig_8h_source.html#l00632">632</a> of file <a class="el" href="ttmathbig_8h_source.html">ttmathbig.h</a>.</p>
<div class="fragment"><div class="line"><a name="l00633"></a><span class="lineno">  633</span>&#160;    {</div><div class="line"><a name="l00634"></a><span class="lineno">  634</span>&#160;        info = 0;</div><div class="line"><a name="l00635"></a><span class="lineno">  635</span>&#160;</div><div class="line"><a name="l00636"></a><span class="lineno">  636</span>&#160;        mantissa.<a class="code" href="classttmath_1_1_u_int.html#a7fdeb0ac1b5fdd397f03fcfc9080488d">SetMax</a>();</div><div class="line"><a name="l00637"></a><span class="lineno">  637</span>&#160;        exponent.<a class="code" href="classttmath_1_1_int.html#a5969b824a40d631c318dd027755028fd">SetMax</a>();</div><div class="line"><a name="l00638"></a><span class="lineno">  638</span>&#160;        <a class="code" href="classttmath_1_1_big.html#a3486d67def6959bd98ee590649c4d1c1">SetSign</a>();</div><div class="line"><a name="l00639"></a><span class="lineno">  639</span>&#160;</div><div class="line"><a name="l00640"></a><span class="lineno">  640</span>&#160;        <span class="comment">// we don&#39;t have to use &#39;Standardizing()&#39; because the last bit from</span></div><div class="line"><a name="l00641"></a><span class="lineno">  641</span>&#160;        <span class="comment">// the mantissa is set</span></div><div class="line"><a name="l00642"></a><span class="lineno">  642</span>&#160;    }</div><div class="ttc" id="classttmath_1_1_big_html_a3486d67def6959bd98ee590649c4d1c1"><div class="ttname"><a href="classttmath_1_1_big.html#a3486d67def6959bd98ee590649c4d1c1">ttmath::Big::SetSign</a></div><div class="ttdeci">void SetSign()</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l00726">ttmathbig.h:726</a></div></div>
<div class="ttc" id="classttmath_1_1_u_int_html_a7fdeb0ac1b5fdd397f03fcfc9080488d"><div class="ttname"><a href="classttmath_1_1_u_int.html#a7fdeb0ac1b5fdd397f03fcfc9080488d">ttmath::UInt::SetMax</a></div><div class="ttdeci">void SetMax()</div><div class="ttdef"><b>Definition:</b> <a href="ttmathuint_8h_source.html#l00215">ttmathuint.h:215</a></div></div>
<div class="ttc" id="classttmath_1_1_int_html_a5969b824a40d631c318dd027755028fd"><div class="ttname"><a href="classttmath_1_1_int.html#a5969b824a40d631c318dd027755028fd">ttmath::Int::SetMax</a></div><div class="ttdeci">void SetMax()</div><div class="ttdef"><b>Definition:</b> <a href="ttmathint_8h_source.html#l00071">ttmathint.h:71</a></div></div>
</div><!-- fragment -->
<p class="reference">References <a class="el" href="ttmathint_8h_source.html#l00071">ttmath::Int&lt; value_size &gt;::SetMax()</a>, <a class="el" href="ttmathuint_8h_source.html#l00215">ttmath::UInt&lt; value_size &gt;::SetMax()</a>, and <a class="el" href="ttmathbig_8h_source.html#l00726">ttmath::Big&lt; exp, man &gt;::SetSign()</a>.</p>

</div>
</div>
<a id="a568b91071e386e75dffb0aebdf1c47ec"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a568b91071e386e75dffb0aebdf1c47ec">&#9670;&nbsp;</a></span>SetNan()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;uint exp, uint man&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classttmath_1_1_big.html">ttmath::Big</a>&lt; exp, man &gt;::SetNan </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>this method sets NaN flag (Not a Number) when this flag is set that means there is no a valid number </p>

<p class="definition">Definition at line <a class="el" href="ttmathbig_8h_source.html#l00296">296</a> of file <a class="el" href="ttmathbig_8h_source.html">ttmathbig.h</a>.</p>
<div class="fragment"><div class="line"><a name="l00297"></a><span class="lineno">  297</span>&#160;    {</div><div class="line"><a name="l00298"></a><span class="lineno">  298</span>&#160;        <a class="code" href="classttmath_1_1_big.html#ae851f864ffab7964931e6b0f7632a377">SetInfoBit</a>(<a class="code" href="ttmathbig_8h.html#a6219093f504910a0e8415844157c70fc">TTMATH_BIG_NAN</a>);</div><div class="line"><a name="l00299"></a><span class="lineno">  299</span>&#160;    }</div><div class="ttc" id="ttmathbig_8h_html_a6219093f504910a0e8415844157c70fc"><div class="ttname"><a href="ttmathbig_8h.html#a6219093f504910a0e8415844157c70fc">TTMATH_BIG_NAN</a></div><div class="ttdeci">#define TTMATH_BIG_NAN</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l00104">ttmathbig.h:104</a></div></div>
<div class="ttc" id="classttmath_1_1_big_html_ae851f864ffab7964931e6b0f7632a377"><div class="ttname"><a href="classttmath_1_1_big.html#ae851f864ffab7964931e6b0f7632a377">ttmath::Big::SetInfoBit</a></div><div class="ttdeci">void SetInfoBit(unsigned char bit)</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l00236">ttmathbig.h:236</a></div></div>
</div><!-- fragment -->
<p class="reference">References <a class="el" href="ttmathbig_8h_source.html#l00236">ttmath::Big&lt; exp, man &gt;::SetInfoBit()</a>, and <a class="el" href="ttmathbig_8h_source.html#l00104">TTMATH_BIG_NAN</a>.</p>

<p class="reference">Referenced by <a class="el" href="ttmathbig_8h_source.html#l01002">ttmath::Big&lt; exp, man &gt;::BitAnd()</a>, <a class="el" href="ttmathbig_8h_source.html#l01063">ttmath::Big&lt; exp, man &gt;::BitOr()</a>, <a class="el" href="ttmathbig_8h_source.html#l01123">ttmath::Big&lt; exp, man &gt;::BitXor()</a>, <a class="el" href="ttmathbig_8h_source.html#l00121">ttmath::Big&lt; exp, man &gt;::CheckCarry()</a>, <a class="el" href="ttmathbig_8h_source.html#l02240">ttmath::Big&lt; exp, man &gt;::FromBig()</a>, <a class="el" href="ttmathbig_8h_source.html#l02736">ttmath::Big&lt; exp, man &gt;::FromDouble()</a>, <a class="el" href="ttmathbig_8h_source.html#l02144">ttmath::Big&lt; exp, man &gt;::Ln()</a>, <a class="el" href="ttmathbig_8h_source.html#l02189">ttmath::Big&lt; exp, man &gt;::Log()</a>, <a class="el" href="ttmathbig_8h_source.html#l01584">ttmath::Big&lt; exp, man &gt;::Pow()</a>, <a class="el" href="ttmathbig_8h_source.html#l01767">ttmath::Big&lt; exp, man &gt;::PowFrac()</a>, <a class="el" href="ttmathbig_8h_source.html#l01731">ttmath::Big&lt; exp, man &gt;::PowInt()</a>, <a class="el" href="ttmathbig_8h_source.html#l01675">ttmath::Big&lt; exp, man &gt;::PowUInt()</a>, <a class="el" href="ttmathbig_8h_source.html#l00306">ttmath::Big&lt; exp, man &gt;::SetZeroNan()</a>, and <a class="el" href="ttmathbig_8h_source.html#l01835">ttmath::Big&lt; exp, man &gt;::Sqrt()</a>.</p>

</div>
</div>
<a id="a5243a9f27365aa90ef3504fd9e52e476"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5243a9f27365aa90ef3504fd9e52e476">&#9670;&nbsp;</a></span>SetOne()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;uint exp, uint man&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classttmath_1_1_big.html">ttmath::Big</a>&lt; exp, man &gt;::SetOne </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>this method sets one </p>

<p class="definition">Definition at line <a class="el" href="ttmathbig_8h_source.html#l00271">271</a> of file <a class="el" href="ttmathbig_8h_source.html">ttmathbig.h</a>.</p>
<div class="fragment"><div class="line"><a name="l00272"></a><span class="lineno">  272</span>&#160;    {</div><div class="line"><a name="l00273"></a><span class="lineno">  273</span>&#160;        info = 0;</div><div class="line"><a name="l00274"></a><span class="lineno">  274</span>&#160;        mantissa.<a class="code" href="classttmath_1_1_u_int.html#ab2086439211b3fbc02eb998b328483ea">SetZero</a>();</div><div class="line"><a name="l00275"></a><span class="lineno">  275</span>&#160;        mantissa.<a class="code" href="classttmath_1_1_u_int.html#a54c67e2e3d1a4d6ea96e828d15c4443a">table</a>[man-1] = <a class="code" href="ttmathtypes_8h.html#a0ccaf279c13b1d747ef8c4690d84b5dd">TTMATH_UINT_HIGHEST_BIT</a>;</div><div class="line"><a name="l00276"></a><span class="lineno">  276</span>&#160;        exponent = -<a class="code" href="namespacettmath.html#a4b0a5dcba29a2c7a0abc8b4403a25ac4">sint</a>(man * <a class="code" href="ttmathtypes_8h.html#aef936ab7a0d7f0c34a9a794b3072cf6a">TTMATH_BITS_PER_UINT</a> - 1);</div><div class="line"><a name="l00277"></a><span class="lineno">  277</span>&#160;</div><div class="line"><a name="l00278"></a><span class="lineno">  278</span>&#160;        <span class="comment">// don&#39;t have to Standardize() - the last bit from mantissa is set</span></div><div class="line"><a name="l00279"></a><span class="lineno">  279</span>&#160;    }</div><div class="ttc" id="classttmath_1_1_u_int_html_a54c67e2e3d1a4d6ea96e828d15c4443a"><div class="ttname"><a href="classttmath_1_1_u_int.html#a54c67e2e3d1a4d6ea96e828d15c4443a">ttmath::UInt::table</a></div><div class="ttdeci">uint table[value_size]</div><div class="ttdef"><b>Definition:</b> <a href="ttmathuint_8h_source.html#l00081">ttmathuint.h:81</a></div></div>
<div class="ttc" id="ttmathtypes_8h_html_a0ccaf279c13b1d747ef8c4690d84b5dd"><div class="ttname"><a href="ttmathtypes_8h.html#a0ccaf279c13b1d747ef8c4690d84b5dd">TTMATH_UINT_HIGHEST_BIT</a></div><div class="ttdeci">#define TTMATH_UINT_HIGHEST_BIT</div><div class="ttdef"><b>Definition:</b> <a href="ttmathtypes_8h_source.html#l00258">ttmathtypes.h:258</a></div></div>
<div class="ttc" id="classttmath_1_1_u_int_html_ab2086439211b3fbc02eb998b328483ea"><div class="ttname"><a href="classttmath_1_1_u_int.html#ab2086439211b3fbc02eb998b328483ea">ttmath::UInt::SetZero</a></div><div class="ttdeci">void SetZero()</div><div class="ttdef"><b>Definition:</b> <a href="ttmathuint_8h_source.html#l00188">ttmathuint.h:188</a></div></div>
<div class="ttc" id="ttmathtypes_8h_html_aef936ab7a0d7f0c34a9a794b3072cf6a"><div class="ttname"><a href="ttmathtypes_8h.html#aef936ab7a0d7f0c34a9a794b3072cf6a">TTMATH_BITS_PER_UINT</a></div><div class="ttdeci">#define TTMATH_BITS_PER_UINT</div><div class="ttdef"><b>Definition:</b> <a href="ttmathtypes_8h_source.html#l00253">ttmathtypes.h:253</a></div></div>
<div class="ttc" id="namespacettmath_html_a4b0a5dcba29a2c7a0abc8b4403a25ac4"><div class="ttname"><a href="namespacettmath.html#a4b0a5dcba29a2c7a0abc8b4403a25ac4">ttmath::sint</a></div><div class="ttdeci">int64_t sint</div><div class="ttdef"><b>Definition:</b> <a href="ttmathtypes_8h_source.html#l00243">ttmathtypes.h:243</a></div></div>
</div><!-- fragment -->
<p class="reference">References <a class="el" href="ttmathuint_8h_source.html#l00188">ttmath::UInt&lt; value_size &gt;::SetZero()</a>, <a class="el" href="ttmathuint_8h_source.html#l00081">ttmath::UInt&lt; value_size &gt;::table</a>, <a class="el" href="ttmathtypes_8h_source.html#l00253">TTMATH_BITS_PER_UINT</a>, and <a class="el" href="ttmathtypes_8h_source.html#l00258">TTMATH_UINT_HIGHEST_BIT</a>.</p>

<p class="reference">Referenced by <a class="el" href="ttmathbig_8h_source.html#l01966">ttmath::Big&lt; exp, man &gt;::Exp()</a>, <a class="el" href="ttmathbig_8h_source.html#l02189">ttmath::Big&lt; exp, man &gt;::Log()</a>, <a class="el" href="ttmathbig_8h_source.html#l01584">ttmath::Big&lt; exp, man &gt;::Pow()</a>, <a class="el" href="ttmathbig_8h_source.html#l01731">ttmath::Big&lt; exp, man &gt;::PowInt()</a>, <a class="el" href="ttmathbig_8h_source.html#l01675">ttmath::Big&lt; exp, man &gt;::PowUInt()</a>, <a class="el" href="ttmathbig_8h_source.html#l00285">ttmath::Big&lt; exp, man &gt;::Set05()</a>, and <a class="el" href="ttmathbig_8h_source.html#l00696">ttmath::Big&lt; exp, man &gt;::Sgn()</a>.</p>

</div>
</div>
<a id="aa7791262bfc4007520edeb1e68624e9a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa7791262bfc4007520edeb1e68624e9a">&#9670;&nbsp;</a></span>SetPi()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;uint exp, uint man&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classttmath_1_1_big.html">ttmath::Big</a>&lt; exp, man &gt;::SetPi </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>this method sets the value of pi </p>

<p class="definition">Definition at line <a class="el" href="ttmathbig_8h_source.html#l00393">393</a> of file <a class="el" href="ttmathbig_8h_source.html">ttmathbig.h</a>.</p>
<div class="fragment"><div class="line"><a name="l00394"></a><span class="lineno">  394</span>&#160;    {</div><div class="line"><a name="l00395"></a><span class="lineno">  395</span>&#160;        <span class="comment">// IMPROVE ME</span></div><div class="line"><a name="l00396"></a><span class="lineno">  396</span>&#160;        <span class="comment">// give some compiler-time warning when the size of mantissa is greater than the builtin size of the mantissa pi</span></div><div class="line"><a name="l00397"></a><span class="lineno">  397</span>&#160;        SetMantissaPi();</div><div class="line"><a name="l00398"></a><span class="lineno">  398</span>&#160;        info = 0;</div><div class="line"><a name="l00399"></a><span class="lineno">  399</span>&#160;        exponent = -<a class="code" href="namespacettmath.html#a4b0a5dcba29a2c7a0abc8b4403a25ac4">sint</a>(man)*<a class="code" href="namespacettmath.html#a4b0a5dcba29a2c7a0abc8b4403a25ac4">sint</a>(<a class="code" href="ttmathtypes_8h.html#aef936ab7a0d7f0c34a9a794b3072cf6a">TTMATH_BITS_PER_UINT</a>) + 2;</div><div class="line"><a name="l00400"></a><span class="lineno">  400</span>&#160;    }</div><div class="ttc" id="ttmathtypes_8h_html_aef936ab7a0d7f0c34a9a794b3072cf6a"><div class="ttname"><a href="ttmathtypes_8h.html#aef936ab7a0d7f0c34a9a794b3072cf6a">TTMATH_BITS_PER_UINT</a></div><div class="ttdeci">#define TTMATH_BITS_PER_UINT</div><div class="ttdef"><b>Definition:</b> <a href="ttmathtypes_8h_source.html#l00253">ttmathtypes.h:253</a></div></div>
<div class="ttc" id="namespacettmath_html_a4b0a5dcba29a2c7a0abc8b4403a25ac4"><div class="ttname"><a href="namespacettmath.html#a4b0a5dcba29a2c7a0abc8b4403a25ac4">ttmath::sint</a></div><div class="ttdeci">int64_t sint</div><div class="ttdef"><b>Definition:</b> <a href="ttmathtypes_8h_source.html#l00243">ttmathtypes.h:243</a></div></div>
</div><!-- fragment -->
<p class="reference">References <a class="el" href="ttmathtypes_8h_source.html#l00253">TTMATH_BITS_PER_UINT</a>.</p>

</div>
</div>
<a id="a3486d67def6959bd98ee590649c4d1c1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3486d67def6959bd98ee590649c4d1c1">&#9670;&nbsp;</a></span>SetSign()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;uint exp, uint man&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classttmath_1_1_big.html">ttmath::Big</a>&lt; exp, man &gt;::SetSign </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>this method sets the sign</p>
<p>samples</p><ul>
<li>-1 -&gt; -1</li>
<li>2 -&gt; -2</li>
</ul>
<p>we do not check whether there is a zero or not, if you're using this method you must be sure that the value is (or will be afterwards) different from zero </p>

<p class="definition">Definition at line <a class="el" href="ttmathbig_8h_source.html#l00726">726</a> of file <a class="el" href="ttmathbig_8h_source.html">ttmathbig.h</a>.</p>
<div class="fragment"><div class="line"><a name="l00727"></a><span class="lineno">  727</span>&#160;    {</div><div class="line"><a name="l00728"></a><span class="lineno">  728</span>&#160;        <a class="code" href="classttmath_1_1_big.html#ae851f864ffab7964931e6b0f7632a377">SetInfoBit</a>(<a class="code" href="ttmathbig_8h.html#a9222f49a8d16599b8b7c77c149796649">TTMATH_BIG_SIGN</a>);</div><div class="line"><a name="l00729"></a><span class="lineno">  729</span>&#160;    }</div><div class="ttc" id="ttmathbig_8h_html_a9222f49a8d16599b8b7c77c149796649"><div class="ttname"><a href="ttmathbig_8h.html#a9222f49a8d16599b8b7c77c149796649">TTMATH_BIG_SIGN</a></div><div class="ttdeci">#define TTMATH_BIG_SIGN</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l00097">ttmathbig.h:97</a></div></div>
<div class="ttc" id="classttmath_1_1_big_html_ae851f864ffab7964931e6b0f7632a377"><div class="ttname"><a href="classttmath_1_1_big.html#ae851f864ffab7964931e6b0f7632a377">ttmath::Big::SetInfoBit</a></div><div class="ttdeci">void SetInfoBit(unsigned char bit)</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l00236">ttmathbig.h:236</a></div></div>
</div><!-- fragment -->
<p class="reference">References <a class="el" href="ttmathbig_8h_source.html#l00236">ttmath::Big&lt; exp, man &gt;::SetInfoBit()</a>, and <a class="el" href="ttmathbig_8h_source.html#l00097">TTMATH_BIG_SIGN</a>.</p>

<p class="reference">Referenced by <a class="el" href="ttmathbig_8h_source.html#l02573">ttmath::Big&lt; exp, man &gt;::FromInt()</a>, <a class="el" href="ttmathbig_8h_source.html#l01233">ttmath::Big&lt; exp, man &gt;::MulInt()</a>, <a class="el" href="ttmathbig_8h_source.html#l00632">ttmath::Big&lt; exp, man &gt;::SetMin()</a>, and <a class="el" href="ttmathbig_8h_source.html#l00696">ttmath::Big&lt; exp, man &gt;::Sgn()</a>.</p>

</div>
</div>
<a id="a1b5980e7d66c1a6bcfe55d85eccb1821"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1b5980e7d66c1a6bcfe55d85eccb1821">&#9670;&nbsp;</a></span>SetZero()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;uint exp, uint man&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classttmath_1_1_big.html">ttmath::Big</a>&lt; exp, man &gt;::SetZero </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>this method sets zero </p>

<p class="definition">Definition at line <a class="el" href="ttmathbig_8h_source.html#l00256">256</a> of file <a class="el" href="ttmathbig_8h_source.html">ttmathbig.h</a>.</p>
<div class="fragment"><div class="line"><a name="l00257"></a><span class="lineno">  257</span>&#160;    {</div><div class="line"><a name="l00258"></a><span class="lineno">  258</span>&#160;        info = <a class="code" href="ttmathbig_8h.html#a158d25d5cc270e04a7b5cbdb928b74f0">TTMATH_BIG_ZERO</a>;</div><div class="line"><a name="l00259"></a><span class="lineno">  259</span>&#160;        exponent.<a class="code" href="classttmath_1_1_u_int.html#ab2086439211b3fbc02eb998b328483ea">SetZero</a>();</div><div class="line"><a name="l00260"></a><span class="lineno">  260</span>&#160;        mantissa.<a class="code" href="classttmath_1_1_u_int.html#ab2086439211b3fbc02eb998b328483ea">SetZero</a>();</div><div class="line"><a name="l00261"></a><span class="lineno">  261</span>&#160;</div><div class="line"><a name="l00262"></a><span class="lineno">  262</span>&#160;        <span class="comment">/*</span></div><div class="line"><a name="l00263"></a><span class="lineno">  263</span>&#160;<span class="comment">            we don&#39;t have to compensate zero</span></div><div class="line"><a name="l00264"></a><span class="lineno">  264</span>&#160;<span class="comment">        */</span></div><div class="line"><a name="l00265"></a><span class="lineno">  265</span>&#160;    }</div><div class="ttc" id="ttmathbig_8h_html_a158d25d5cc270e04a7b5cbdb928b74f0"><div class="ttname"><a href="ttmathbig_8h.html#a158d25d5cc270e04a7b5cbdb928b74f0">TTMATH_BIG_ZERO</a></div><div class="ttdeci">#define TTMATH_BIG_ZERO</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l00113">ttmathbig.h:113</a></div></div>
<div class="ttc" id="classttmath_1_1_u_int_html_ab2086439211b3fbc02eb998b328483ea"><div class="ttname"><a href="classttmath_1_1_u_int.html#ab2086439211b3fbc02eb998b328483ea">ttmath::UInt::SetZero</a></div><div class="ttdeci">void SetZero()</div><div class="ttdef"><b>Definition:</b> <a href="ttmathuint_8h_source.html#l00188">ttmathuint.h:188</a></div></div>
</div><!-- fragment -->
<p class="reference">References <a class="el" href="ttmathuint_8h_source.html#l00188">ttmath::UInt&lt; value_size &gt;::SetZero()</a>, and <a class="el" href="ttmathbig_8h_source.html#l00113">TTMATH_BIG_ZERO</a>.</p>

<p class="reference">Referenced by <a class="el" href="ttmathbig_8h_source.html#l01002">ttmath::Big&lt; exp, man &gt;::BitAnd()</a>, <a class="el" href="ttmathbig_8h_source.html#l02736">ttmath::Big&lt; exp, man &gt;::FromDouble()</a>, <a class="el" href="ttmathbig_8h_source.html#l02538">ttmath::Big&lt; exp, man &gt;::FromUInt()</a>, <a class="el" href="ttmathbig_8h_source.html#l02189">ttmath::Big&lt; exp, man &gt;::Log()</a>, <a class="el" href="ttmathbig_8h_source.html#l01233">ttmath::Big&lt; exp, man &gt;::MulInt()</a>, <a class="el" href="ttmathbig_8h_source.html#l01179">ttmath::Big&lt; exp, man &gt;::MulUInt()</a>, <a class="el" href="ttmathbig_8h_source.html#l01797">ttmath::Big&lt; exp, man &gt;::Pow()</a>, <a class="el" href="ttmathbig_8h_source.html#l05842">ttmath::Big&lt; exp, man &gt;::RemainFraction()</a>, <a class="el" href="ttmathbig_8h_source.html#l00306">ttmath::Big&lt; exp, man &gt;::SetZeroNan()</a>, <a class="el" href="ttmathbig_8h_source.html#l00696">ttmath::Big&lt; exp, man &gt;::Sgn()</a>, and <a class="el" href="ttmathbig_8h_source.html#l05808">ttmath::Big&lt; exp, man &gt;::SkipFraction()</a>.</p>

</div>
</div>
<a id="a71805011593c0be2e134dae8d71983ea"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a71805011593c0be2e134dae8d71983ea">&#9670;&nbsp;</a></span>SetZeroNan()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;uint exp, uint man&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classttmath_1_1_big.html">ttmath::Big</a>&lt; exp, man &gt;::SetZeroNan </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>this method sets NaN flag (Not a Number) also clears the mantissa and exponent (similarly as it would be a zero value) </p>

<p class="definition">Definition at line <a class="el" href="ttmathbig_8h_source.html#l00306">306</a> of file <a class="el" href="ttmathbig_8h_source.html">ttmathbig.h</a>.</p>
<div class="fragment"><div class="line"><a name="l00307"></a><span class="lineno">  307</span>&#160;    {</div><div class="line"><a name="l00308"></a><span class="lineno">  308</span>&#160;        <a class="code" href="classttmath_1_1_big.html#a1b5980e7d66c1a6bcfe55d85eccb1821">SetZero</a>();</div><div class="line"><a name="l00309"></a><span class="lineno">  309</span>&#160;        <a class="code" href="classttmath_1_1_big.html#a568b91071e386e75dffb0aebdf1c47ec">SetNan</a>();</div><div class="line"><a name="l00310"></a><span class="lineno">  310</span>&#160;    }</div><div class="ttc" id="classttmath_1_1_big_html_a568b91071e386e75dffb0aebdf1c47ec"><div class="ttname"><a href="classttmath_1_1_big.html#a568b91071e386e75dffb0aebdf1c47ec">ttmath::Big::SetNan</a></div><div class="ttdeci">void SetNan()</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l00296">ttmathbig.h:296</a></div></div>
<div class="ttc" id="classttmath_1_1_big_html_a1b5980e7d66c1a6bcfe55d85eccb1821"><div class="ttname"><a href="classttmath_1_1_big.html#a1b5980e7d66c1a6bcfe55d85eccb1821">ttmath::Big::SetZero</a></div><div class="ttdeci">void SetZero()</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l00256">ttmathbig.h:256</a></div></div>
</div><!-- fragment -->
<p class="reference">References <a class="el" href="ttmathbig_8h_source.html#l00296">ttmath::Big&lt; exp, man &gt;::SetNan()</a>, and <a class="el" href="ttmathbig_8h_source.html#l00256">ttmath::Big&lt; exp, man &gt;::SetZero()</a>.</p>

<p class="reference">Referenced by <a class="el" href="ttmathbig_8h_source.html#l03658">ttmath::Big&lt; exp, man &gt;::Big()</a>.</p>

</div>
</div>
<a id="ad936f1c064b22965cabc9b818ade48a9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad936f1c064b22965cabc9b818ade48a9">&#9670;&nbsp;</a></span>Sgn()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;uint exp, uint man&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classttmath_1_1_big.html">ttmath::Big</a>&lt; exp, man &gt;::Sgn </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>this method remains the 'sign' of the value</p>
<p>samples</p><ul>
<li>-2 = -1</li>
<li>0 = 0</li>
<li>10 = 1 </li>
</ul>

<p class="definition">Definition at line <a class="el" href="ttmathbig_8h_source.html#l00696">696</a> of file <a class="el" href="ttmathbig_8h_source.html">ttmathbig.h</a>.</p>
<div class="fragment"><div class="line"><a name="l00697"></a><span class="lineno">  697</span>&#160;    {</div><div class="line"><a name="l00698"></a><span class="lineno">  698</span>&#160;        <span class="comment">// we have to check the NaN flag, because the next SetOne() method would clear it</span></div><div class="line"><a name="l00699"></a><span class="lineno">  699</span>&#160;        <span class="keywordflow">if</span>( <a class="code" href="classttmath_1_1_big.html#a7575e10d9fff2f301a66bb05ab472111">IsNan</a>() )</div><div class="line"><a name="l00700"></a><span class="lineno">  700</span>&#160;            <span class="keywordflow">return</span>;</div><div class="line"><a name="l00701"></a><span class="lineno">  701</span>&#160;</div><div class="line"><a name="l00702"></a><span class="lineno">  702</span>&#160;        <span class="keywordflow">if</span>( <a class="code" href="classttmath_1_1_big.html#ac8f89807eb1878d93d76fe609f4a6b42">IsSign</a>() )</div><div class="line"><a name="l00703"></a><span class="lineno">  703</span>&#160;        {</div><div class="line"><a name="l00704"></a><span class="lineno">  704</span>&#160;            <a class="code" href="classttmath_1_1_big.html#a5243a9f27365aa90ef3504fd9e52e476">SetOne</a>();</div><div class="line"><a name="l00705"></a><span class="lineno">  705</span>&#160;            <a class="code" href="classttmath_1_1_big.html#a3486d67def6959bd98ee590649c4d1c1">SetSign</a>();</div><div class="line"><a name="l00706"></a><span class="lineno">  706</span>&#160;        }</div><div class="line"><a name="l00707"></a><span class="lineno">  707</span>&#160;        <span class="keywordflow">else</span></div><div class="line"><a name="l00708"></a><span class="lineno">  708</span>&#160;        <span class="keywordflow">if</span>( <a class="code" href="classttmath_1_1_big.html#a00cdfa94cc491487709a3f1356fd0a14">IsZero</a>() )</div><div class="line"><a name="l00709"></a><span class="lineno">  709</span>&#160;            <a class="code" href="classttmath_1_1_big.html#a1b5980e7d66c1a6bcfe55d85eccb1821">SetZero</a>(); <span class="comment">// !! is nedeed here?</span></div><div class="line"><a name="l00710"></a><span class="lineno">  710</span>&#160;        <span class="keywordflow">else</span></div><div class="line"><a name="l00711"></a><span class="lineno">  711</span>&#160;            <a class="code" href="classttmath_1_1_big.html#a5243a9f27365aa90ef3504fd9e52e476">SetOne</a>();</div><div class="line"><a name="l00712"></a><span class="lineno">  712</span>&#160;    }</div><div class="ttc" id="classttmath_1_1_big_html_ac8f89807eb1878d93d76fe609f4a6b42"><div class="ttname"><a href="classttmath_1_1_big.html#ac8f89807eb1878d93d76fe609f4a6b42">ttmath::Big::IsSign</a></div><div class="ttdeci">bool IsSign() const</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l00658">ttmathbig.h:658</a></div></div>
<div class="ttc" id="classttmath_1_1_big_html_a3486d67def6959bd98ee590649c4d1c1"><div class="ttname"><a href="classttmath_1_1_big.html#a3486d67def6959bd98ee590649c4d1c1">ttmath::Big::SetSign</a></div><div class="ttdeci">void SetSign()</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l00726">ttmathbig.h:726</a></div></div>
<div class="ttc" id="classttmath_1_1_big_html_a5243a9f27365aa90ef3504fd9e52e476"><div class="ttname"><a href="classttmath_1_1_big.html#a5243a9f27365aa90ef3504fd9e52e476">ttmath::Big::SetOne</a></div><div class="ttdeci">void SetOne()</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l00271">ttmathbig.h:271</a></div></div>
<div class="ttc" id="classttmath_1_1_big_html_a00cdfa94cc491487709a3f1356fd0a14"><div class="ttname"><a href="classttmath_1_1_big.html#a00cdfa94cc491487709a3f1356fd0a14">ttmath::Big::IsZero</a></div><div class="ttdeci">bool IsZero() const</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l00648">ttmathbig.h:648</a></div></div>
<div class="ttc" id="classttmath_1_1_big_html_a7575e10d9fff2f301a66bb05ab472111"><div class="ttname"><a href="classttmath_1_1_big.html#a7575e10d9fff2f301a66bb05ab472111">ttmath::Big::IsNan</a></div><div class="ttdeci">bool IsNan() const</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l00667">ttmathbig.h:667</a></div></div>
<div class="ttc" id="classttmath_1_1_big_html_a1b5980e7d66c1a6bcfe55d85eccb1821"><div class="ttname"><a href="classttmath_1_1_big.html#a1b5980e7d66c1a6bcfe55d85eccb1821">ttmath::Big::SetZero</a></div><div class="ttdeci">void SetZero()</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l00256">ttmathbig.h:256</a></div></div>
</div><!-- fragment -->
<p class="reference">References <a class="el" href="ttmathbig_8h_source.html#l00667">ttmath::Big&lt; exp, man &gt;::IsNan()</a>, <a class="el" href="ttmathbig_8h_source.html#l00658">ttmath::Big&lt; exp, man &gt;::IsSign()</a>, <a class="el" href="ttmathbig_8h_source.html#l00648">ttmath::Big&lt; exp, man &gt;::IsZero()</a>, <a class="el" href="ttmathbig_8h_source.html#l00271">ttmath::Big&lt; exp, man &gt;::SetOne()</a>, <a class="el" href="ttmathbig_8h_source.html#l00726">ttmath::Big&lt; exp, man &gt;::SetSign()</a>, and <a class="el" href="ttmathbig_8h_source.html#l00256">ttmath::Big&lt; exp, man &gt;::SetZero()</a>.</p>

</div>
</div>
<a id="a6ae448d3c59f28495d6951bd688ed485"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6ae448d3c59f28495d6951bd688ed485">&#9670;&nbsp;</a></span>SkipFraction()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;uint exp, uint man&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classttmath_1_1_big.html">ttmath::Big</a>&lt; exp, man &gt;::SkipFraction </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>this method makes an integer value by skipping any fractions</p>
<p>samples:</p><ul>
<li>10.7 will be 10</li>
<li>12.1 &ndash; 12</li>
<li>-20.2 &ndash; 20</li>
<li>-20.9 &ndash; 20</li>
<li>-0.7 &ndash; 0</li>
<li>0.8 &ndash; 0 </li>
</ul>

<p class="definition">Definition at line <a class="el" href="ttmathbig_8h_source.html#l05808">5808</a> of file <a class="el" href="ttmathbig_8h_source.html">ttmathbig.h</a>.</p>
<div class="fragment"><div class="line"><a name="l05809"></a><span class="lineno"> 5809</span>&#160;    {</div><div class="line"><a name="l05810"></a><span class="lineno"> 5810</span>&#160;        <span class="keywordflow">if</span>( <a class="code" href="classttmath_1_1_big.html#a7575e10d9fff2f301a66bb05ab472111">IsNan</a>() || <a class="code" href="classttmath_1_1_big.html#a00cdfa94cc491487709a3f1356fd0a14">IsZero</a>() )</div><div class="line"><a name="l05811"></a><span class="lineno"> 5811</span>&#160;            <span class="keywordflow">return</span>;</div><div class="line"><a name="l05812"></a><span class="lineno"> 5812</span>&#160;</div><div class="line"><a name="l05813"></a><span class="lineno"> 5813</span>&#160;        <span class="keywordflow">if</span>( !exponent.<a class="code" href="classttmath_1_1_int.html#af91fdc65105f7ceb071c2a8a98d0cbfb">IsSign</a>() )</div><div class="line"><a name="l05814"></a><span class="lineno"> 5814</span>&#160;            <span class="comment">// exponent &gt;=0 -- the value don&#39;t have any fractions</span></div><div class="line"><a name="l05815"></a><span class="lineno"> 5815</span>&#160;            <span class="keywordflow">return</span>;</div><div class="line"><a name="l05816"></a><span class="lineno"> 5816</span>&#160;</div><div class="line"><a name="l05817"></a><span class="lineno"> 5817</span>&#160;        <span class="keywordflow">if</span>( exponent &lt;= -<a class="code" href="namespacettmath.html#a4b0a5dcba29a2c7a0abc8b4403a25ac4">sint</a>(man*<a class="code" href="ttmathtypes_8h.html#aef936ab7a0d7f0c34a9a794b3072cf6a">TTMATH_BITS_PER_UINT</a>) )</div><div class="line"><a name="l05818"></a><span class="lineno"> 5818</span>&#160;        {</div><div class="line"><a name="l05819"></a><span class="lineno"> 5819</span>&#160;            <span class="comment">// the value is from (-1,1), we return zero</span></div><div class="line"><a name="l05820"></a><span class="lineno"> 5820</span>&#160;            <a class="code" href="classttmath_1_1_big.html#a1b5980e7d66c1a6bcfe55d85eccb1821">SetZero</a>();</div><div class="line"><a name="l05821"></a><span class="lineno"> 5821</span>&#160;            <span class="keywordflow">return</span>;</div><div class="line"><a name="l05822"></a><span class="lineno"> 5822</span>&#160;        }</div><div class="line"><a name="l05823"></a><span class="lineno"> 5823</span>&#160;</div><div class="line"><a name="l05824"></a><span class="lineno"> 5824</span>&#160;        <span class="comment">// exponent is in range (-man*TTMATH_BITS_PER_UINT, 0)</span></div><div class="line"><a name="l05825"></a><span class="lineno"> 5825</span>&#160;        <a class="code" href="namespacettmath.html#a4b0a5dcba29a2c7a0abc8b4403a25ac4">sint</a> e = exponent.<a class="code" href="classttmath_1_1_int.html#af934f141ffee622c5b19edc661d2d76f">ToInt</a>();</div><div class="line"><a name="l05826"></a><span class="lineno"> 5826</span>&#160;    </div><div class="line"><a name="l05827"></a><span class="lineno"> 5827</span>&#160;        mantissa.<a class="code" href="classttmath_1_1_u_int.html#a60e97560d5f03d2321130a33fd24c74c">ClearFirstBits</a>( -e );</div><div class="line"><a name="l05828"></a><span class="lineno"> 5828</span>&#160;        </div><div class="line"><a name="l05829"></a><span class="lineno"> 5829</span>&#160;        <span class="comment">// we don&#39;t have to standardize &#39;Standardizing()&#39; the value because</span></div><div class="line"><a name="l05830"></a><span class="lineno"> 5830</span>&#160;        <span class="comment">// there&#39;s at least one bit in the mantissa</span></div><div class="line"><a name="l05831"></a><span class="lineno"> 5831</span>&#160;        <span class="comment">// (the highest bit which we didn&#39;t touch)</span></div><div class="line"><a name="l05832"></a><span class="lineno"> 5832</span>&#160;    }</div><div class="ttc" id="classttmath_1_1_big_html_a00cdfa94cc491487709a3f1356fd0a14"><div class="ttname"><a href="classttmath_1_1_big.html#a00cdfa94cc491487709a3f1356fd0a14">ttmath::Big::IsZero</a></div><div class="ttdeci">bool IsZero() const</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l00648">ttmathbig.h:648</a></div></div>
<div class="ttc" id="classttmath_1_1_int_html_af91fdc65105f7ceb071c2a8a98d0cbfb"><div class="ttname"><a href="classttmath_1_1_int.html#af91fdc65105f7ceb071c2a8a98d0cbfb">ttmath::Int::IsSign</a></div><div class="ttdeci">bool IsSign() const</div><div class="ttdef"><b>Definition:</b> <a href="ttmathint_8h_source.html#l00156">ttmathint.h:156</a></div></div>
<div class="ttc" id="classttmath_1_1_big_html_a7575e10d9fff2f301a66bb05ab472111"><div class="ttname"><a href="classttmath_1_1_big.html#a7575e10d9fff2f301a66bb05ab472111">ttmath::Big::IsNan</a></div><div class="ttdeci">bool IsNan() const</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l00667">ttmathbig.h:667</a></div></div>
<div class="ttc" id="ttmathtypes_8h_html_aef936ab7a0d7f0c34a9a794b3072cf6a"><div class="ttname"><a href="ttmathtypes_8h.html#aef936ab7a0d7f0c34a9a794b3072cf6a">TTMATH_BITS_PER_UINT</a></div><div class="ttdeci">#define TTMATH_BITS_PER_UINT</div><div class="ttdef"><b>Definition:</b> <a href="ttmathtypes_8h_source.html#l00253">ttmathtypes.h:253</a></div></div>
<div class="ttc" id="classttmath_1_1_u_int_html_a60e97560d5f03d2321130a33fd24c74c"><div class="ttname"><a href="classttmath_1_1_u_int.html#a60e97560d5f03d2321130a33fd24c74c">ttmath::UInt::ClearFirstBits</a></div><div class="ttdeci">void ClearFirstBits(uint n)</div><div class="ttdef"><b>Definition:</b> <a href="ttmathuint_8h_source.html#l02508">ttmathuint.h:2508</a></div></div>
<div class="ttc" id="namespacettmath_html_a4b0a5dcba29a2c7a0abc8b4403a25ac4"><div class="ttname"><a href="namespacettmath.html#a4b0a5dcba29a2c7a0abc8b4403a25ac4">ttmath::sint</a></div><div class="ttdeci">int64_t sint</div><div class="ttdef"><b>Definition:</b> <a href="ttmathtypes_8h_source.html#l00243">ttmathtypes.h:243</a></div></div>
<div class="ttc" id="classttmath_1_1_big_html_a1b5980e7d66c1a6bcfe55d85eccb1821"><div class="ttname"><a href="classttmath_1_1_big.html#a1b5980e7d66c1a6bcfe55d85eccb1821">ttmath::Big::SetZero</a></div><div class="ttdeci">void SetZero()</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l00256">ttmathbig.h:256</a></div></div>
<div class="ttc" id="classttmath_1_1_int_html_af934f141ffee622c5b19edc661d2d76f"><div class="ttname"><a href="classttmath_1_1_int.html#af934f141ffee622c5b19edc661d2d76f">ttmath::Int::ToInt</a></div><div class="ttdeci">sint ToInt() const</div><div class="ttdef"><b>Definition:</b> <a href="ttmathint_8h_source.html#l01132">ttmathint.h:1132</a></div></div>
</div><!-- fragment -->
<p class="reference">References <a class="el" href="ttmathuint_8h_source.html#l02508">ttmath::UInt&lt; value_size &gt;::ClearFirstBits()</a>, <a class="el" href="ttmathbig_8h_source.html#l00667">ttmath::Big&lt; exp, man &gt;::IsNan()</a>, <a class="el" href="ttmathint_8h_source.html#l00156">ttmath::Int&lt; value_size &gt;::IsSign()</a>, <a class="el" href="ttmathbig_8h_source.html#l00648">ttmath::Big&lt; exp, man &gt;::IsZero()</a>, <a class="el" href="ttmathbig_8h_source.html#l00256">ttmath::Big&lt; exp, man &gt;::SetZero()</a>, <a class="el" href="ttmathint_8h_source.html#l01132">ttmath::Int&lt; value_size &gt;::ToInt()</a>, and <a class="el" href="ttmathtypes_8h_source.html#l00253">TTMATH_BITS_PER_UINT</a>.</p>

<p class="reference">Referenced by <a class="el" href="ttmathbig_8h_source.html#l05929">ttmath::Big&lt; exp, man &gt;::Round()</a>.</p>

</div>
</div>
<a id="a591311e9b21e4c6dc5ae8e6140e1a7f6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a591311e9b21e4c6dc5ae8e6140e1a7f6">&#9670;&nbsp;</a></span>SmallerWithoutSignThan()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;uint exp, uint man&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">bool <a class="el" href="classttmath_1_1_big.html">ttmath::Big</a>&lt; exp, man &gt;::SmallerWithoutSignThan </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classttmath_1_1_big.html">Big</a>&lt; exp, man &gt; &amp;&#160;</td>
          <td class="paramname"><em>ss2</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>methods for comparing</p>
<p>this method performs the formula 'abs(this) &lt; abs(ss2)' and returns the result</p>
<p>(in other words it treats 'this' and 'ss2' as values without a sign) we don't check the NaN flag </p>

<p class="definition">Definition at line <a class="el" href="ttmathbig_8h_source.html#l05419">5419</a> of file <a class="el" href="ttmathbig_8h_source.html">ttmathbig.h</a>.</p>
<div class="fragment"><div class="line"><a name="l05420"></a><span class="lineno"> 5420</span>&#160;    {</div><div class="line"><a name="l05421"></a><span class="lineno"> 5421</span>&#160;        <span class="keywordflow">if</span>( <a class="code" href="classttmath_1_1_big.html#a00cdfa94cc491487709a3f1356fd0a14">IsZero</a>() )</div><div class="line"><a name="l05422"></a><span class="lineno"> 5422</span>&#160;        {</div><div class="line"><a name="l05423"></a><span class="lineno"> 5423</span>&#160;            <span class="keywordflow">if</span>( ss2.IsZero() )</div><div class="line"><a name="l05424"></a><span class="lineno"> 5424</span>&#160;                <span class="comment">// we&#39;ve got two zeroes</span></div><div class="line"><a name="l05425"></a><span class="lineno"> 5425</span>&#160;                <span class="keywordflow">return</span> <span class="keyword">false</span>;</div><div class="line"><a name="l05426"></a><span class="lineno"> 5426</span>&#160;            <span class="keywordflow">else</span></div><div class="line"><a name="l05427"></a><span class="lineno"> 5427</span>&#160;                <span class="comment">// this==0 and ss2!=0</span></div><div class="line"><a name="l05428"></a><span class="lineno"> 5428</span>&#160;                <span class="keywordflow">return</span> <span class="keyword">true</span>;</div><div class="line"><a name="l05429"></a><span class="lineno"> 5429</span>&#160;        }</div><div class="line"><a name="l05430"></a><span class="lineno"> 5430</span>&#160;</div><div class="line"><a name="l05431"></a><span class="lineno"> 5431</span>&#160;        <span class="keywordflow">if</span>( ss2.IsZero() )</div><div class="line"><a name="l05432"></a><span class="lineno"> 5432</span>&#160;        {</div><div class="line"><a name="l05433"></a><span class="lineno"> 5433</span>&#160;            <span class="comment">// this!=0 and ss2==0</span></div><div class="line"><a name="l05434"></a><span class="lineno"> 5434</span>&#160;            <span class="keywordflow">return</span> <span class="keyword">false</span>;</div><div class="line"><a name="l05435"></a><span class="lineno"> 5435</span>&#160;        }</div><div class="line"><a name="l05436"></a><span class="lineno"> 5436</span>&#160;</div><div class="line"><a name="l05437"></a><span class="lineno"> 5437</span>&#160;        <span class="comment">// we&#39;re using the fact that all bits in mantissa are pushed</span></div><div class="line"><a name="l05438"></a><span class="lineno"> 5438</span>&#160;        <span class="comment">// into the left side -- Standardizing()</span></div><div class="line"><a name="l05439"></a><span class="lineno"> 5439</span>&#160;        <span class="keywordflow">if</span>( exponent == ss2.exponent )</div><div class="line"><a name="l05440"></a><span class="lineno"> 5440</span>&#160;            <span class="keywordflow">return</span> mantissa &lt; ss2.mantissa;</div><div class="line"><a name="l05441"></a><span class="lineno"> 5441</span>&#160;</div><div class="line"><a name="l05442"></a><span class="lineno"> 5442</span>&#160;    <span class="keywordflow">return</span> exponent &lt; ss2.exponent;</div><div class="line"><a name="l05443"></a><span class="lineno"> 5443</span>&#160;    }</div><div class="ttc" id="classttmath_1_1_big_html_a00cdfa94cc491487709a3f1356fd0a14"><div class="ttname"><a href="classttmath_1_1_big.html#a00cdfa94cc491487709a3f1356fd0a14">ttmath::Big::IsZero</a></div><div class="ttdeci">bool IsZero() const</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l00648">ttmathbig.h:648</a></div></div>
</div><!-- fragment -->
<p class="reference">References <a class="el" href="ttmathbig_8h_source.html#l00648">ttmath::Big&lt; exp, man &gt;::IsZero()</a>.</p>

<p class="reference">Referenced by <a class="el" href="ttmathbig_8h_source.html#l00930">ttmath::Big&lt; exp, man &gt;::Add()</a>, <a class="el" href="ttmathbig_8h_source.html#l01002">ttmath::Big&lt; exp, man &gt;::BitAnd()</a>, <a class="el" href="ttmathbig_8h_source.html#l01063">ttmath::Big&lt; exp, man &gt;::BitOr()</a>, and <a class="el" href="ttmathbig_8h_source.html#l01123">ttmath::Big&lt; exp, man &gt;::BitXor()</a>.</p>

</div>
</div>
<a id="a6a2dbb9846bbebd87393f2ea8f75911d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6a2dbb9846bbebd87393f2ea8f75911d">&#9670;&nbsp;</a></span>Sqrt()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;uint exp, uint man&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a> <a class="el" href="classttmath_1_1_big.html">ttmath::Big</a>&lt; exp, man &gt;::Sqrt </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>this function calculates the square root e.g. let this=9 then <a class="el" href="namespacettmath.html#a4ef68f4994c6c514e97fd44f1d850f0e">this.Sqrt()</a> gives 3</p>
<p>return:</p><ul>
<li>0 - ok</li>
<li>1 - carry</li>
<li>2 - improper argument (this&lt;0 or NaN) </li>
</ul>

<p class="definition">Definition at line <a class="el" href="ttmathbig_8h_source.html#l01835">1835</a> of file <a class="el" href="ttmathbig_8h_source.html">ttmathbig.h</a>.</p>
<div class="fragment"><div class="line"><a name="l01836"></a><span class="lineno"> 1836</span>&#160;    {</div><div class="line"><a name="l01837"></a><span class="lineno"> 1837</span>&#160;        <span class="keywordflow">if</span>( <a class="code" href="classttmath_1_1_big.html#a7575e10d9fff2f301a66bb05ab472111">IsNan</a>() || <a class="code" href="classttmath_1_1_big.html#ac8f89807eb1878d93d76fe609f4a6b42">IsSign</a>() )</div><div class="line"><a name="l01838"></a><span class="lineno"> 1838</span>&#160;        {</div><div class="line"><a name="l01839"></a><span class="lineno"> 1839</span>&#160;            <a class="code" href="classttmath_1_1_big.html#a568b91071e386e75dffb0aebdf1c47ec">SetNan</a>();</div><div class="line"><a name="l01840"></a><span class="lineno"> 1840</span>&#160;            <span class="keywordflow">return</span> 2;</div><div class="line"><a name="l01841"></a><span class="lineno"> 1841</span>&#160;        }</div><div class="line"><a name="l01842"></a><span class="lineno"> 1842</span>&#160;</div><div class="line"><a name="l01843"></a><span class="lineno"> 1843</span>&#160;        <span class="keywordflow">if</span>( <a class="code" href="classttmath_1_1_big.html#a00cdfa94cc491487709a3f1356fd0a14">IsZero</a>() )</div><div class="line"><a name="l01844"></a><span class="lineno"> 1844</span>&#160;            <span class="keywordflow">return</span> 0;</div><div class="line"><a name="l01845"></a><span class="lineno"> 1845</span>&#160;</div><div class="line"><a name="l01846"></a><span class="lineno"> 1846</span>&#160;        Big&lt;exp, man&gt; old(*<span class="keyword">this</span>);</div><div class="line"><a name="l01847"></a><span class="lineno"> 1847</span>&#160;        Big&lt;exp, man&gt; ln;</div><div class="line"><a name="l01848"></a><span class="lineno"> 1848</span>&#160;        <a class="code" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a> c = 0;</div><div class="line"><a name="l01849"></a><span class="lineno"> 1849</span>&#160;</div><div class="line"><a name="l01850"></a><span class="lineno"> 1850</span>&#160;        <span class="comment">// we&#39;re using the formula: sqrt(x) = e ^ (ln(x) / 2)</span></div><div class="line"><a name="l01851"></a><span class="lineno"> 1851</span>&#160;        c += ln.Ln(*<span class="keyword">this</span>);</div><div class="line"><a name="l01852"></a><span class="lineno"> 1852</span>&#160;        c += ln.exponent.SubOne(); <span class="comment">// ln = ln / 2</span></div><div class="line"><a name="l01853"></a><span class="lineno"> 1853</span>&#160;        c += <a class="code" href="classttmath_1_1_big.html#a2c2c7de54743b12c05f1bfea7b153eba">Exp</a>(ln);</div><div class="line"><a name="l01854"></a><span class="lineno"> 1854</span>&#160;</div><div class="line"><a name="l01855"></a><span class="lineno"> 1855</span>&#160;        <span class="comment">// above formula doesn&#39;t give accurate results for some integers</span></div><div class="line"><a name="l01856"></a><span class="lineno"> 1856</span>&#160;        <span class="comment">// e.g. Sqrt(81) would not be 9 but a value very closed to 9</span></div><div class="line"><a name="l01857"></a><span class="lineno"> 1857</span>&#160;        <span class="comment">// we&#39;re rounding the result, calculating result*result and comparing</span></div><div class="line"><a name="l01858"></a><span class="lineno"> 1858</span>&#160;        <span class="comment">// with the old value, if they are equal then the result is an integer too</span></div><div class="line"><a name="l01859"></a><span class="lineno"> 1859</span>&#160;</div><div class="line"><a name="l01860"></a><span class="lineno"> 1860</span>&#160;        <span class="keywordflow">if</span>( !c &amp;&amp; old.IsInteger() &amp;&amp; !<a class="code" href="classttmath_1_1_big.html#aa2709ec35d8cd0e39e1c72a834f2ee3c">IsInteger</a>() )</div><div class="line"><a name="l01861"></a><span class="lineno"> 1861</span>&#160;        {</div><div class="line"><a name="l01862"></a><span class="lineno"> 1862</span>&#160;            Big&lt;exp, man&gt; temp(*<span class="keyword">this</span>);</div><div class="line"><a name="l01863"></a><span class="lineno"> 1863</span>&#160;            c += temp.Round();</div><div class="line"><a name="l01864"></a><span class="lineno"> 1864</span>&#160;</div><div class="line"><a name="l01865"></a><span class="lineno"> 1865</span>&#160;            Big&lt;exp, man&gt; temp2(temp);</div><div class="line"><a name="l01866"></a><span class="lineno"> 1866</span>&#160;            c += temp.Mul(temp2);</div><div class="line"><a name="l01867"></a><span class="lineno"> 1867</span>&#160;</div><div class="line"><a name="l01868"></a><span class="lineno"> 1868</span>&#160;            <span class="keywordflow">if</span>( temp == old )</div><div class="line"><a name="l01869"></a><span class="lineno"> 1869</span>&#160;                *<span class="keyword">this</span> = temp2;</div><div class="line"><a name="l01870"></a><span class="lineno"> 1870</span>&#160;        }</div><div class="line"><a name="l01871"></a><span class="lineno"> 1871</span>&#160;</div><div class="line"><a name="l01872"></a><span class="lineno"> 1872</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="classttmath_1_1_big.html#a0681595612114e8ab1dc9c8f3e8590e7">CheckCarry</a>(c);</div><div class="line"><a name="l01873"></a><span class="lineno"> 1873</span>&#160;    }</div><div class="ttc" id="classttmath_1_1_big_html_ac8f89807eb1878d93d76fe609f4a6b42"><div class="ttname"><a href="classttmath_1_1_big.html#ac8f89807eb1878d93d76fe609f4a6b42">ttmath::Big::IsSign</a></div><div class="ttdeci">bool IsSign() const</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l00658">ttmathbig.h:658</a></div></div>
<div class="ttc" id="classttmath_1_1_big_html_a0681595612114e8ab1dc9c8f3e8590e7"><div class="ttname"><a href="classttmath_1_1_big.html#a0681595612114e8ab1dc9c8f3e8590e7">ttmath::Big::CheckCarry</a></div><div class="ttdeci">uint CheckCarry(uint c)</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l00121">ttmathbig.h:121</a></div></div>
<div class="ttc" id="classttmath_1_1_big_html_a568b91071e386e75dffb0aebdf1c47ec"><div class="ttname"><a href="classttmath_1_1_big.html#a568b91071e386e75dffb0aebdf1c47ec">ttmath::Big::SetNan</a></div><div class="ttdeci">void SetNan()</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l00296">ttmathbig.h:296</a></div></div>
<div class="ttc" id="classttmath_1_1_big_html_a2c2c7de54743b12c05f1bfea7b153eba"><div class="ttname"><a href="classttmath_1_1_big.html#a2c2c7de54743b12c05f1bfea7b153eba">ttmath::Big::Exp</a></div><div class="ttdeci">uint Exp(const Big&lt; exp, man &gt; &amp;x)</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l01966">ttmathbig.h:1966</a></div></div>
<div class="ttc" id="classttmath_1_1_big_html_a00cdfa94cc491487709a3f1356fd0a14"><div class="ttname"><a href="classttmath_1_1_big.html#a00cdfa94cc491487709a3f1356fd0a14">ttmath::Big::IsZero</a></div><div class="ttdeci">bool IsZero() const</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l00648">ttmathbig.h:648</a></div></div>
<div class="ttc" id="classttmath_1_1_big_html_aa2709ec35d8cd0e39e1c72a834f2ee3c"><div class="ttname"><a href="classttmath_1_1_big.html#aa2709ec35d8cd0e39e1c72a834f2ee3c">ttmath::Big::IsInteger</a></div><div class="ttdeci">bool IsInteger() const</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l05883">ttmathbig.h:5883</a></div></div>
<div class="ttc" id="classttmath_1_1_big_html_a7575e10d9fff2f301a66bb05ab472111"><div class="ttname"><a href="classttmath_1_1_big.html#a7575e10d9fff2f301a66bb05ab472111">ttmath::Big::IsNan</a></div><div class="ttdeci">bool IsNan() const</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l00667">ttmathbig.h:667</a></div></div>
<div class="ttc" id="namespacettmath_html_a5c1fccc9761aaa3d2b6dd32c224f5dac"><div class="ttname"><a href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">ttmath::uint</a></div><div class="ttdeci">uint64_t uint</div><div class="ttdef"><b>Definition:</b> <a href="ttmathtypes_8h_source.html#l00238">ttmathtypes.h:238</a></div></div>
</div><!-- fragment -->
<p class="reference">References <a class="el" href="ttmathbig_8h_source.html#l00121">ttmath::Big&lt; exp, man &gt;::CheckCarry()</a>, <a class="el" href="ttmathbig_8h_source.html#l01966">ttmath::Big&lt; exp, man &gt;::Exp()</a>, <a class="el" href="ttmathbig_8h_source.html#l05883">ttmath::Big&lt; exp, man &gt;::IsInteger()</a>, <a class="el" href="ttmathbig_8h_source.html#l00667">ttmath::Big&lt; exp, man &gt;::IsNan()</a>, <a class="el" href="ttmathbig_8h_source.html#l00658">ttmath::Big&lt; exp, man &gt;::IsSign()</a>, <a class="el" href="ttmathbig_8h_source.html#l00648">ttmath::Big&lt; exp, man &gt;::IsZero()</a>, <a class="el" href="ttmathbig_8h_source.html#l02144">ttmath::Big&lt; exp, man &gt;::Ln()</a>, <a class="el" href="ttmathbig_8h_source.html#l01373">ttmath::Big&lt; exp, man &gt;::Mul()</a>, <a class="el" href="ttmathbig_8h_source.html#l05929">ttmath::Big&lt; exp, man &gt;::Round()</a>, <a class="el" href="ttmathbig_8h_source.html#l00296">ttmath::Big&lt; exp, man &gt;::SetNan()</a>, and <a class="el" href="ttmathint_8h_source.html#l00340">ttmath::Int&lt; value_size &gt;::SubOne()</a>.</p>

</div>
</div>
<a id="aedc4abe8e1d984289b41830e9a1d67fb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aedc4abe8e1d984289b41830e9a1d67fb">&#9670;&nbsp;</a></span>Standardizing()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;uint exp, uint man&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a> <a class="el" href="classttmath_1_1_big.html">ttmath::Big</a>&lt; exp, man &gt;::Standardizing </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>this method moves all bits from mantissa into its left side (suitably changes the exponent) or if the mantissa is zero it sets the exponent to zero as well (and clears the sign bit and sets the zero bit)</p>
<p>it can return a carry the carry will be when we don't have enough space in the exponent</p>
<p>you don't have to use this method if you don't change the mantissa and exponent directly </p>

<p class="definition">Definition at line <a class="el" href="ttmathbig_8h_source.html#l00173">173</a> of file <a class="el" href="ttmathbig_8h_source.html">ttmathbig.h</a>.</p>
<div class="fragment"><div class="line"><a name="l00174"></a><span class="lineno">  174</span>&#160;    {</div><div class="line"><a name="l00175"></a><span class="lineno">  175</span>&#160;        <span class="keywordflow">if</span>( mantissa.<a class="code" href="classttmath_1_1_u_int.html#a2421734423858544d65515584fa4683c">IsTheHighestBitSet</a>() )</div><div class="line"><a name="l00176"></a><span class="lineno">  176</span>&#160;        {</div><div class="line"><a name="l00177"></a><span class="lineno">  177</span>&#160;            <a class="code" href="classttmath_1_1_big.html#a9b37f06bfa5793ecbfe889e7ad7931b2">ClearInfoBit</a>(<a class="code" href="ttmathbig_8h.html#a158d25d5cc270e04a7b5cbdb928b74f0">TTMATH_BIG_ZERO</a>);</div><div class="line"><a name="l00178"></a><span class="lineno">  178</span>&#160;            <span class="keywordflow">return</span> 0;</div><div class="line"><a name="l00179"></a><span class="lineno">  179</span>&#160;        }</div><div class="line"><a name="l00180"></a><span class="lineno">  180</span>&#160;</div><div class="line"><a name="l00181"></a><span class="lineno">  181</span>&#160;        <span class="keywordflow">if</span>( CorrectZero() )</div><div class="line"><a name="l00182"></a><span class="lineno">  182</span>&#160;            <span class="keywordflow">return</span> 0;</div><div class="line"><a name="l00183"></a><span class="lineno">  183</span>&#160;</div><div class="line"><a name="l00184"></a><span class="lineno">  184</span>&#160;        <a class="code" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a> comp = mantissa.<a class="code" href="classttmath_1_1_u_int.html#adef5243a8390314fb21339145e3a154c">CompensationToLeft</a>();</div><div class="line"><a name="l00185"></a><span class="lineno">  185</span>&#160;</div><div class="line"><a name="l00186"></a><span class="lineno">  186</span>&#160;    <span class="keywordflow">return</span> exponent.<a class="code" href="classttmath_1_1_int.html#af8e3e13a842ecee73415e2c14818063f">Sub</a>( comp );</div><div class="line"><a name="l00187"></a><span class="lineno">  187</span>&#160;    }</div><div class="ttc" id="classttmath_1_1_big_html_a9b37f06bfa5793ecbfe889e7ad7931b2"><div class="ttname"><a href="classttmath_1_1_big.html#a9b37f06bfa5793ecbfe889e7ad7931b2">ttmath::Big::ClearInfoBit</a></div><div class="ttdeci">void ClearInfoBit(unsigned char bit)</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l00224">ttmathbig.h:224</a></div></div>
<div class="ttc" id="classttmath_1_1_u_int_html_a2421734423858544d65515584fa4683c"><div class="ttname"><a href="classttmath_1_1_u_int.html#a2421734423858544d65515584fa4683c">ttmath::UInt::IsTheHighestBitSet</a></div><div class="ttdeci">bool IsTheHighestBitSet() const</div><div class="ttdef"><b>Definition:</b> <a href="ttmathuint_8h_source.html#l02547">ttmathuint.h:2547</a></div></div>
<div class="ttc" id="ttmathbig_8h_html_a158d25d5cc270e04a7b5cbdb928b74f0"><div class="ttname"><a href="ttmathbig_8h.html#a158d25d5cc270e04a7b5cbdb928b74f0">TTMATH_BIG_ZERO</a></div><div class="ttdeci">#define TTMATH_BIG_ZERO</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l00113">ttmathbig.h:113</a></div></div>
<div class="ttc" id="classttmath_1_1_u_int_html_adef5243a8390314fb21339145e3a154c"><div class="ttname"><a href="classttmath_1_1_u_int.html#adef5243a8390314fb21339145e3a154c">ttmath::UInt::CompensationToLeft</a></div><div class="ttdeci">uint CompensationToLeft()</div><div class="ttdef"><b>Definition:</b> <a href="ttmathuint_8h_source.html#l00598">ttmathuint.h:598</a></div></div>
<div class="ttc" id="namespacettmath_html_a5c1fccc9761aaa3d2b6dd32c224f5dac"><div class="ttname"><a href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">ttmath::uint</a></div><div class="ttdeci">uint64_t uint</div><div class="ttdef"><b>Definition:</b> <a href="ttmathtypes_8h_source.html#l00238">ttmathtypes.h:238</a></div></div>
<div class="ttc" id="classttmath_1_1_int_html_af8e3e13a842ecee73415e2c14818063f"><div class="ttname"><a href="classttmath_1_1_int.html#af8e3e13a842ecee73415e2c14818063f">ttmath::Int::Sub</a></div><div class="ttdeci">uint Sub(const Int&lt; value_size &gt; &amp;ss2)</div><div class="ttdef"><b>Definition:</b> <a href="ttmathint_8h_source.html#l00299">ttmathint.h:299</a></div></div>
</div><!-- fragment -->
<p class="reference">References <a class="el" href="ttmathbig_8h_source.html#l00224">ttmath::Big&lt; exp, man &gt;::ClearInfoBit()</a>, <a class="el" href="ttmathuint_8h_source.html#l00598">ttmath::UInt&lt; value_size &gt;::CompensationToLeft()</a>, <a class="el" href="ttmathuint_8h_source.html#l02547">ttmath::UInt&lt; value_size &gt;::IsTheHighestBitSet()</a>, <a class="el" href="ttmathint_8h_source.html#l00299">ttmath::Int&lt; value_size &gt;::Sub()</a>, and <a class="el" href="ttmathbig_8h_source.html#l00113">TTMATH_BIG_ZERO</a>.</p>

<p class="reference">Referenced by <a class="el" href="ttmathbig_8h_source.html#l00930">ttmath::Big&lt; exp, man &gt;::Add()</a>, <a class="el" href="ttmathbig_8h_source.html#l01002">ttmath::Big&lt; exp, man &gt;::BitAnd()</a>, <a class="el" href="ttmathbig_8h_source.html#l01063">ttmath::Big&lt; exp, man &gt;::BitOr()</a>, <a class="el" href="ttmathbig_8h_source.html#l01123">ttmath::Big&lt; exp, man &gt;::BitXor()</a>, <a class="el" href="ttmathbig_8h_source.html#l02736">ttmath::Big&lt; exp, man &gt;::FromDouble()</a>, <a class="el" href="ttmathbig_8h_source.html#l02538">ttmath::Big&lt; exp, man &gt;::FromUInt()</a>, <a class="el" href="ttmathbig_8h_source.html#l01179">ttmath::Big&lt; exp, man &gt;::MulUInt()</a>, and <a class="el" href="ttmathbig_8h_source.html#l05842">ttmath::Big&lt; exp, man &gt;::RemainFraction()</a>.</p>

</div>
</div>
<a id="ab06fe23729905c90461b52be26104744"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab06fe23729905c90461b52be26104744">&#9670;&nbsp;</a></span>Sub()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;uint exp, uint man&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a> <a class="el" href="classttmath_1_1_big.html">ttmath::Big</a>&lt; exp, man &gt;::Sub </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classttmath_1_1_big.html">Big</a>&lt; exp, man &gt; &amp;&#160;</td>
          <td class="paramname"><em>ss2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>round</em> = <code>true</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Subtraction this = this - ss2</p>
<p>it returns carry if the result is too big </p>

<p class="definition">Definition at line <a class="el" href="ttmathbig_8h_source.html#l00986">986</a> of file <a class="el" href="ttmathbig_8h_source.html">ttmathbig.h</a>.</p>
<div class="fragment"><div class="line"><a name="l00987"></a><span class="lineno">  987</span>&#160;    {</div><div class="line"><a name="l00988"></a><span class="lineno">  988</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="classttmath_1_1_big.html#af8cc709585199e6f5b48e9b4e058b043">Add</a>(ss2, round, <span class="keyword">false</span>);</div><div class="line"><a name="l00989"></a><span class="lineno">  989</span>&#160;    }</div><div class="ttc" id="classttmath_1_1_big_html_af8cc709585199e6f5b48e9b4e058b043"><div class="ttname"><a href="classttmath_1_1_big.html#af8cc709585199e6f5b48e9b4e058b043">ttmath::Big::Add</a></div><div class="ttdeci">uint Add(Big&lt; exp, man &gt; ss2, bool round=true, bool adding=true)</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l00930">ttmathbig.h:930</a></div></div>
</div><!-- fragment -->
<p class="reference">References <a class="el" href="ttmathbig_8h_source.html#l00930">ttmath::Big&lt; exp, man &gt;::Add()</a>.</p>

<p class="reference">Referenced by <a class="el" href="ttmathbig_8h_source.html#l05929">ttmath::Big&lt; exp, man &gt;::Round()</a>.</p>

</div>
</div>
<a id="a86225c6b7812f9d9ed2a4009b3278222"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a86225c6b7812f9d9ed2a4009b3278222">&#9670;&nbsp;</a></span>Swap()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;uint exp, uint man&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classttmath_1_1_big.html">ttmath::Big</a>&lt; exp, man &gt;::Swap </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classttmath_1_1_big.html">Big</a>&lt; exp, man &gt; &amp;&#160;</td>
          <td class="paramname"><em>ss2</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>this method swappes this for an argument </p>

<p class="definition">Definition at line <a class="el" href="ttmathbig_8h_source.html#l00316">316</a> of file <a class="el" href="ttmathbig_8h_source.html">ttmathbig.h</a>.</p>
<div class="fragment"><div class="line"><a name="l00317"></a><span class="lineno">  317</span>&#160;    {</div><div class="line"><a name="l00318"></a><span class="lineno">  318</span>&#160;        <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> info_temp = info;</div><div class="line"><a name="l00319"></a><span class="lineno">  319</span>&#160;        info = ss2.info;</div><div class="line"><a name="l00320"></a><span class="lineno">  320</span>&#160;        ss2.info = info_temp;</div><div class="line"><a name="l00321"></a><span class="lineno">  321</span>&#160;</div><div class="line"><a name="l00322"></a><span class="lineno">  322</span>&#160;        exponent.<a class="code" href="classttmath_1_1_u_int.html#a47f6a6820ea8447013d8e20ae5fa0545">Swap</a>(ss2.exponent);</div><div class="line"><a name="l00323"></a><span class="lineno">  323</span>&#160;        mantissa.<a class="code" href="classttmath_1_1_u_int.html#a47f6a6820ea8447013d8e20ae5fa0545">Swap</a>(ss2.mantissa);</div><div class="line"><a name="l00324"></a><span class="lineno">  324</span>&#160;    }</div><div class="ttc" id="classttmath_1_1_u_int_html_a47f6a6820ea8447013d8e20ae5fa0545"><div class="ttname"><a href="classttmath_1_1_u_int.html#a47f6a6820ea8447013d8e20ae5fa0545">ttmath::UInt::Swap</a></div><div class="ttdeci">void Swap(UInt&lt; value_size &gt; &amp;ss2)</div><div class="ttdef"><b>Definition:</b> <a href="ttmathuint_8h_source.html#l00239">ttmathuint.h:239</a></div></div>
</div><!-- fragment -->
<p class="reference">References <a class="el" href="ttmathuint_8h_source.html#l00239">ttmath::UInt&lt; value_size &gt;::Swap()</a>.</p>

<p class="reference">Referenced by <a class="el" href="ttmathbig_8h_source.html#l00930">ttmath::Big&lt; exp, man &gt;::Add()</a>, <a class="el" href="ttmathbig_8h_source.html#l01002">ttmath::Big&lt; exp, man &gt;::BitAnd()</a>, <a class="el" href="ttmathbig_8h_source.html#l01063">ttmath::Big&lt; exp, man &gt;::BitOr()</a>, and <a class="el" href="ttmathbig_8h_source.html#l01123">ttmath::Big&lt; exp, man &gt;::BitXor()</a>.</p>

</div>
</div>
<a id="a3008dfb310b1580c45116f8c1d9ea6d9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3008dfb310b1580c45116f8c1d9ea6d9">&#9670;&nbsp;</a></span>ToDouble() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;uint exp, uint man&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">double <a class="el" href="classttmath_1_1_big.html">ttmath::Big</a>&lt; exp, man &gt;::ToDouble </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>this method converts from this class into the 'double'</p>
<p>if the value is too big: 'result' will be +/-infinity (depending on the sign)</p>
<p>if the value is too small: 'result' will be 0 </p>

<p class="definition">Definition at line <a class="el" href="ttmathbig_8h_source.html#l02848">2848</a> of file <a class="el" href="ttmathbig_8h_source.html">ttmathbig.h</a>.</p>
<div class="fragment"><div class="line"><a name="l02849"></a><span class="lineno"> 2849</span>&#160;    {</div><div class="line"><a name="l02850"></a><span class="lineno"> 2850</span>&#160;    <span class="keywordtype">double</span> result;</div><div class="line"><a name="l02851"></a><span class="lineno"> 2851</span>&#160;</div><div class="line"><a name="l02852"></a><span class="lineno"> 2852</span>&#160;        <a class="code" href="classttmath_1_1_big.html#a3008dfb310b1580c45116f8c1d9ea6d9">ToDouble</a>(result);</div><div class="line"><a name="l02853"></a><span class="lineno"> 2853</span>&#160;</div><div class="line"><a name="l02854"></a><span class="lineno"> 2854</span>&#160;    <span class="keywordflow">return</span> result;</div><div class="line"><a name="l02855"></a><span class="lineno"> 2855</span>&#160;    }</div><div class="ttc" id="classttmath_1_1_big_html_a3008dfb310b1580c45116f8c1d9ea6d9"><div class="ttname"><a href="classttmath_1_1_big.html#a3008dfb310b1580c45116f8c1d9ea6d9">ttmath::Big::ToDouble</a></div><div class="ttdeci">double ToDouble() const</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l02848">ttmathbig.h:2848</a></div></div>
</div><!-- fragment -->
<p class="reference">Referenced by <a class="el" href="ttmathbig_8h_source.html#l02941">ttmath::Big&lt; exp, man &gt;::ToFloat()</a>.</p>

</div>
</div>
<a id="a047a2c4143d827b2e5820d0609639525"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a047a2c4143d827b2e5820d0609639525">&#9670;&nbsp;</a></span>ToDouble() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;uint exp, uint man&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a> <a class="el" href="classttmath_1_1_big.html">ttmath::Big</a>&lt; exp, man &gt;::ToDouble </td>
          <td>(</td>
          <td class="paramtype">double &amp;&#160;</td>
          <td class="paramname"><em>result</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>this method converts from this class into the 'double'</p>
<p>if the value is too big:</p><ul>
<li>'result' will be +/-infinity (depending on the sign)</li>
<li>and the method returns 1</li>
</ul>
<p>if the value is too small:</p><ul>
<li>'result' will be 0</li>
<li>and the method returns 1 </li>
</ul>

<p class="definition">Definition at line <a class="el" href="ttmathbig_8h_source.html#l02979">2979</a> of file <a class="el" href="ttmathbig_8h_source.html">ttmathbig.h</a>.</p>
<div class="fragment"><div class="line"><a name="l02980"></a><span class="lineno"> 2980</span>&#160;    {</div><div class="line"><a name="l02981"></a><span class="lineno"> 2981</span>&#160;        <span class="keywordflow">if</span>( <a class="code" href="classttmath_1_1_big.html#a00cdfa94cc491487709a3f1356fd0a14">IsZero</a>() )</div><div class="line"><a name="l02982"></a><span class="lineno"> 2982</span>&#160;        {</div><div class="line"><a name="l02983"></a><span class="lineno"> 2983</span>&#160;            result = 0.0;</div><div class="line"><a name="l02984"></a><span class="lineno"> 2984</span>&#160;            <span class="keywordflow">return</span> 0;</div><div class="line"><a name="l02985"></a><span class="lineno"> 2985</span>&#160;        }</div><div class="line"><a name="l02986"></a><span class="lineno"> 2986</span>&#160;</div><div class="line"><a name="l02987"></a><span class="lineno"> 2987</span>&#160;        <span class="keywordflow">if</span>( <a class="code" href="classttmath_1_1_big.html#a7575e10d9fff2f301a66bb05ab472111">IsNan</a>() )</div><div class="line"><a name="l02988"></a><span class="lineno"> 2988</span>&#160;        {</div><div class="line"><a name="l02989"></a><span class="lineno"> 2989</span>&#160;            result = ToDouble_SetDouble( <span class="keyword">false</span>, 2047, 0, <span class="keyword">false</span>, <span class="keyword">true</span>);</div><div class="line"><a name="l02990"></a><span class="lineno"> 2990</span>&#160;</div><div class="line"><a name="l02991"></a><span class="lineno"> 2991</span>&#160;        <span class="keywordflow">return</span> 0;</div><div class="line"><a name="l02992"></a><span class="lineno"> 2992</span>&#160;        }</div><div class="line"><a name="l02993"></a><span class="lineno"> 2993</span>&#160;</div><div class="line"><a name="l02994"></a><span class="lineno"> 2994</span>&#160;        <a class="code" href="namespacettmath.html#a4b0a5dcba29a2c7a0abc8b4403a25ac4">sint</a> e_correction = <a class="code" href="namespacettmath.html#a4b0a5dcba29a2c7a0abc8b4403a25ac4">sint</a>(man*<a class="code" href="ttmathtypes_8h.html#aef936ab7a0d7f0c34a9a794b3072cf6a">TTMATH_BITS_PER_UINT</a>) - 1;</div><div class="line"><a name="l02995"></a><span class="lineno"> 2995</span>&#160;</div><div class="line"><a name="l02996"></a><span class="lineno"> 2996</span>&#160;        <span class="keywordflow">if</span>( exponent &gt;= 1024 - e_correction )</div><div class="line"><a name="l02997"></a><span class="lineno"> 2997</span>&#160;        {</div><div class="line"><a name="l02998"></a><span class="lineno"> 2998</span>&#160;            <span class="comment">// +/- infinity</span></div><div class="line"><a name="l02999"></a><span class="lineno"> 2999</span>&#160;            result = ToDouble_SetDouble( <a class="code" href="classttmath_1_1_big.html#ac8f89807eb1878d93d76fe609f4a6b42">IsSign</a>(), 2047, 0, <span class="keyword">true</span>);</div><div class="line"><a name="l03000"></a><span class="lineno"> 3000</span>&#160;</div><div class="line"><a name="l03001"></a><span class="lineno"> 3001</span>&#160;        <span class="keywordflow">return</span> 1;</div><div class="line"><a name="l03002"></a><span class="lineno"> 3002</span>&#160;        }</div><div class="line"><a name="l03003"></a><span class="lineno"> 3003</span>&#160;        <span class="keywordflow">else</span></div><div class="line"><a name="l03004"></a><span class="lineno"> 3004</span>&#160;        <span class="keywordflow">if</span>( exponent &lt;= -1023 - 52 - e_correction )</div><div class="line"><a name="l03005"></a><span class="lineno"> 3005</span>&#160;        {</div><div class="line"><a name="l03006"></a><span class="lineno"> 3006</span>&#160;            <span class="comment">// too small value - we assume that there&#39;ll be a zero</span></div><div class="line"><a name="l03007"></a><span class="lineno"> 3007</span>&#160;            result = 0;</div><div class="line"><a name="l03008"></a><span class="lineno"> 3008</span>&#160;</div><div class="line"><a name="l03009"></a><span class="lineno"> 3009</span>&#160;            <span class="comment">// and return a carry</span></div><div class="line"><a name="l03010"></a><span class="lineno"> 3010</span>&#160;        <span class="keywordflow">return</span> 1;</div><div class="line"><a name="l03011"></a><span class="lineno"> 3011</span>&#160;        }</div><div class="line"><a name="l03012"></a><span class="lineno"> 3012</span>&#160;        </div><div class="line"><a name="l03013"></a><span class="lineno"> 3013</span>&#160;        <a class="code" href="namespacettmath.html#a4b0a5dcba29a2c7a0abc8b4403a25ac4">sint</a> e = exponent.<a class="code" href="classttmath_1_1_int.html#af934f141ffee622c5b19edc661d2d76f">ToInt</a>() + e_correction;</div><div class="line"><a name="l03014"></a><span class="lineno"> 3014</span>&#160;</div><div class="line"><a name="l03015"></a><span class="lineno"> 3015</span>&#160;        <span class="keywordflow">if</span>( e &lt;= -1023 )</div><div class="line"><a name="l03016"></a><span class="lineno"> 3016</span>&#160;        {</div><div class="line"><a name="l03017"></a><span class="lineno"> 3017</span>&#160;            <span class="comment">// -1023-52 &lt; e &lt;= -1023  (unnormalized value)</span></div><div class="line"><a name="l03018"></a><span class="lineno"> 3018</span>&#160;            result = ToDouble_SetDouble( <a class="code" href="classttmath_1_1_big.html#ac8f89807eb1878d93d76fe609f4a6b42">IsSign</a>(), 0, -(e + 1023));</div><div class="line"><a name="l03019"></a><span class="lineno"> 3019</span>&#160;        }</div><div class="line"><a name="l03020"></a><span class="lineno"> 3020</span>&#160;        <span class="keywordflow">else</span></div><div class="line"><a name="l03021"></a><span class="lineno"> 3021</span>&#160;        {</div><div class="line"><a name="l03022"></a><span class="lineno"> 3022</span>&#160;            <span class="comment">// -1023 &lt; e &lt; 1024</span></div><div class="line"><a name="l03023"></a><span class="lineno"> 3023</span>&#160;            result = ToDouble_SetDouble( <a class="code" href="classttmath_1_1_big.html#ac8f89807eb1878d93d76fe609f4a6b42">IsSign</a>(), e + 1023, -1);</div><div class="line"><a name="l03024"></a><span class="lineno"> 3024</span>&#160;        }</div><div class="line"><a name="l03025"></a><span class="lineno"> 3025</span>&#160;</div><div class="line"><a name="l03026"></a><span class="lineno"> 3026</span>&#160;    <span class="keywordflow">return</span> 0;</div><div class="line"><a name="l03027"></a><span class="lineno"> 3027</span>&#160;    }</div><div class="ttc" id="classttmath_1_1_big_html_ac8f89807eb1878d93d76fe609f4a6b42"><div class="ttname"><a href="classttmath_1_1_big.html#ac8f89807eb1878d93d76fe609f4a6b42">ttmath::Big::IsSign</a></div><div class="ttdeci">bool IsSign() const</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l00658">ttmathbig.h:658</a></div></div>
<div class="ttc" id="classttmath_1_1_big_html_a00cdfa94cc491487709a3f1356fd0a14"><div class="ttname"><a href="classttmath_1_1_big.html#a00cdfa94cc491487709a3f1356fd0a14">ttmath::Big::IsZero</a></div><div class="ttdeci">bool IsZero() const</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l00648">ttmathbig.h:648</a></div></div>
<div class="ttc" id="classttmath_1_1_big_html_a7575e10d9fff2f301a66bb05ab472111"><div class="ttname"><a href="classttmath_1_1_big.html#a7575e10d9fff2f301a66bb05ab472111">ttmath::Big::IsNan</a></div><div class="ttdeci">bool IsNan() const</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l00667">ttmathbig.h:667</a></div></div>
<div class="ttc" id="ttmathtypes_8h_html_aef936ab7a0d7f0c34a9a794b3072cf6a"><div class="ttname"><a href="ttmathtypes_8h.html#aef936ab7a0d7f0c34a9a794b3072cf6a">TTMATH_BITS_PER_UINT</a></div><div class="ttdeci">#define TTMATH_BITS_PER_UINT</div><div class="ttdef"><b>Definition:</b> <a href="ttmathtypes_8h_source.html#l00253">ttmathtypes.h:253</a></div></div>
<div class="ttc" id="namespacettmath_html_a4b0a5dcba29a2c7a0abc8b4403a25ac4"><div class="ttname"><a href="namespacettmath.html#a4b0a5dcba29a2c7a0abc8b4403a25ac4">ttmath::sint</a></div><div class="ttdeci">int64_t sint</div><div class="ttdef"><b>Definition:</b> <a href="ttmathtypes_8h_source.html#l00243">ttmathtypes.h:243</a></div></div>
<div class="ttc" id="classttmath_1_1_int_html_af934f141ffee622c5b19edc661d2d76f"><div class="ttname"><a href="classttmath_1_1_int.html#af934f141ffee622c5b19edc661d2d76f">ttmath::Int::ToInt</a></div><div class="ttdeci">sint ToInt() const</div><div class="ttdef"><b>Definition:</b> <a href="ttmathint_8h_source.html#l01132">ttmathint.h:1132</a></div></div>
</div><!-- fragment -->
<p class="reference">References <a class="el" href="ttmathbig_8h_source.html#l00667">ttmath::Big&lt; exp, man &gt;::IsNan()</a>, <a class="el" href="ttmathbig_8h_source.html#l00658">ttmath::Big&lt; exp, man &gt;::IsSign()</a>, <a class="el" href="ttmathbig_8h_source.html#l00648">ttmath::Big&lt; exp, man &gt;::IsZero()</a>, <a class="el" href="ttmathint_8h_source.html#l01132">ttmath::Int&lt; value_size &gt;::ToInt()</a>, and <a class="el" href="ttmathtypes_8h_source.html#l00253">TTMATH_BITS_PER_UINT</a>.</p>

</div>
</div>
<a id="a7983fae3bacfd7705c23cb509d781451"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7983fae3bacfd7705c23cb509d781451">&#9670;&nbsp;</a></span>ToFloat() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;uint exp, uint man&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">float <a class="el" href="classttmath_1_1_big.html">ttmath::Big</a>&lt; exp, man &gt;::ToFloat </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>this method converts from this class into the 'float'</p>
<p>if the value is too big: 'result' will be +/-infinity (depending on the sign)</p>
<p>if the value is too small: 'result' will be 0 </p>

<p class="definition">Definition at line <a class="el" href="ttmathbig_8h_source.html#l02920">2920</a> of file <a class="el" href="ttmathbig_8h_source.html">ttmathbig.h</a>.</p>
<div class="fragment"><div class="line"><a name="l02921"></a><span class="lineno"> 2921</span>&#160;    {</div><div class="line"><a name="l02922"></a><span class="lineno"> 2922</span>&#160;    <span class="keywordtype">float</span> result;</div><div class="line"><a name="l02923"></a><span class="lineno"> 2923</span>&#160;</div><div class="line"><a name="l02924"></a><span class="lineno"> 2924</span>&#160;        <a class="code" href="classttmath_1_1_big.html#a7983fae3bacfd7705c23cb509d781451">ToFloat</a>(result);</div><div class="line"><a name="l02925"></a><span class="lineno"> 2925</span>&#160;</div><div class="line"><a name="l02926"></a><span class="lineno"> 2926</span>&#160;    <span class="keywordflow">return</span> result;</div><div class="line"><a name="l02927"></a><span class="lineno"> 2927</span>&#160;    }</div><div class="ttc" id="classttmath_1_1_big_html_a7983fae3bacfd7705c23cb509d781451"><div class="ttname"><a href="classttmath_1_1_big.html#a7983fae3bacfd7705c23cb509d781451">ttmath::Big::ToFloat</a></div><div class="ttdeci">float ToFloat() const</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l02920">ttmathbig.h:2920</a></div></div>
</div><!-- fragment -->
</div>
</div>
<a id="a6e6b6458935b167e3301c72c280b0670"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6e6b6458935b167e3301c72c280b0670">&#9670;&nbsp;</a></span>ToFloat() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;uint exp, uint man&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a> <a class="el" href="classttmath_1_1_big.html">ttmath::Big</a>&lt; exp, man &gt;::ToFloat </td>
          <td>(</td>
          <td class="paramtype">float &amp;&#160;</td>
          <td class="paramname"><em>result</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>this method converts from this class into the 'float'</p>
<p>if the value is too big:</p><ul>
<li>'result' will be +/-infinity (depending on the sign)</li>
<li>and the method returns 1</li>
</ul>
<p>if the value is too small:</p><ul>
<li>'result' will be 0</li>
<li>and the method returns 1 </li>
</ul>

<p class="definition">Definition at line <a class="el" href="ttmathbig_8h_source.html#l02941">2941</a> of file <a class="el" href="ttmathbig_8h_source.html">ttmathbig.h</a>.</p>
<div class="fragment"><div class="line"><a name="l02942"></a><span class="lineno"> 2942</span>&#160;    {</div><div class="line"><a name="l02943"></a><span class="lineno"> 2943</span>&#160;    <span class="keywordtype">double</span> result_double;</div><div class="line"><a name="l02944"></a><span class="lineno"> 2944</span>&#160;</div><div class="line"><a name="l02945"></a><span class="lineno"> 2945</span>&#160;        <a class="code" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a> c = <a class="code" href="classttmath_1_1_big.html#a3008dfb310b1580c45116f8c1d9ea6d9">ToDouble</a>(result_double);</div><div class="line"><a name="l02946"></a><span class="lineno"> 2946</span>&#160;        result = float(result_double);</div><div class="line"><a name="l02947"></a><span class="lineno"> 2947</span>&#160;        </div><div class="line"><a name="l02948"></a><span class="lineno"> 2948</span>&#160;        <span class="keywordflow">if</span>( result == -0.0f )</div><div class="line"><a name="l02949"></a><span class="lineno"> 2949</span>&#160;            result = 0.0f;</div><div class="line"><a name="l02950"></a><span class="lineno"> 2950</span>&#160;</div><div class="line"><a name="l02951"></a><span class="lineno"> 2951</span>&#160;        <span class="keywordflow">if</span>( c )</div><div class="line"><a name="l02952"></a><span class="lineno"> 2952</span>&#160;            <span class="keywordflow">return</span> 1;</div><div class="line"><a name="l02953"></a><span class="lineno"> 2953</span>&#160;</div><div class="line"><a name="l02954"></a><span class="lineno"> 2954</span>&#160;        <span class="comment">// although the result_double can have a correct value</span></div><div class="line"><a name="l02955"></a><span class="lineno"> 2955</span>&#160;        <span class="comment">// but after converting to float there can be infinity</span></div><div class="line"><a name="l02956"></a><span class="lineno"> 2956</span>&#160;</div><div class="line"><a name="l02957"></a><span class="lineno"> 2957</span>&#160;        <span class="keywordflow">if</span>( IsInf(result) )</div><div class="line"><a name="l02958"></a><span class="lineno"> 2958</span>&#160;            <span class="keywordflow">return</span> 1;</div><div class="line"><a name="l02959"></a><span class="lineno"> 2959</span>&#160;</div><div class="line"><a name="l02960"></a><span class="lineno"> 2960</span>&#160;        <span class="keywordflow">if</span>( result == 0.0f &amp;&amp; result_double != 0.0 )</div><div class="line"><a name="l02961"></a><span class="lineno"> 2961</span>&#160;            <span class="comment">// result_double was too small for float</span></div><div class="line"><a name="l02962"></a><span class="lineno"> 2962</span>&#160;            <span class="keywordflow">return</span> 1;</div><div class="line"><a name="l02963"></a><span class="lineno"> 2963</span>&#160;</div><div class="line"><a name="l02964"></a><span class="lineno"> 2964</span>&#160;    <span class="keywordflow">return</span> 0;</div><div class="line"><a name="l02965"></a><span class="lineno"> 2965</span>&#160;    }</div><div class="ttc" id="classttmath_1_1_big_html_a3008dfb310b1580c45116f8c1d9ea6d9"><div class="ttname"><a href="classttmath_1_1_big.html#a3008dfb310b1580c45116f8c1d9ea6d9">ttmath::Big::ToDouble</a></div><div class="ttdeci">double ToDouble() const</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l02848">ttmathbig.h:2848</a></div></div>
<div class="ttc" id="namespacettmath_html_a5c1fccc9761aaa3d2b6dd32c224f5dac"><div class="ttname"><a href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">ttmath::uint</a></div><div class="ttdeci">uint64_t uint</div><div class="ttdef"><b>Definition:</b> <a href="ttmathtypes_8h_source.html#l00238">ttmathtypes.h:238</a></div></div>
</div><!-- fragment -->
<p class="reference">References <a class="el" href="ttmathbig_8h_source.html#l02848">ttmath::Big&lt; exp, man &gt;::ToDouble()</a>.</p>

</div>
</div>
<a id="a2bf2c98f26adfd1386597f2b9f195d02"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2bf2c98f26adfd1386597f2b9f195d02">&#9670;&nbsp;</a></span>ToInt() <span class="overload">[1/7]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;uint exp, uint man&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="namespacettmath.html#a4b0a5dcba29a2c7a0abc8b4403a25ac4">sint</a> <a class="el" href="classttmath_1_1_big.html">ttmath::Big</a>&lt; exp, man &gt;::ToInt </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>this method converts 'this' into sint </p>

<p class="definition">Definition at line <a class="el" href="ttmathbig_8h_source.html#l02366">2366</a> of file <a class="el" href="ttmathbig_8h_source.html">ttmathbig.h</a>.</p>
<div class="fragment"><div class="line"><a name="l02367"></a><span class="lineno"> 2367</span>&#160;    {</div><div class="line"><a name="l02368"></a><span class="lineno"> 2368</span>&#160;    <a class="code" href="namespacettmath.html#a4b0a5dcba29a2c7a0abc8b4403a25ac4">sint</a> result;</div><div class="line"><a name="l02369"></a><span class="lineno"> 2369</span>&#160;</div><div class="line"><a name="l02370"></a><span class="lineno"> 2370</span>&#160;        <a class="code" href="classttmath_1_1_big.html#a2bf2c98f26adfd1386597f2b9f195d02">ToInt</a>(result);</div><div class="line"><a name="l02371"></a><span class="lineno"> 2371</span>&#160;</div><div class="line"><a name="l02372"></a><span class="lineno"> 2372</span>&#160;    <span class="keywordflow">return</span> result;</div><div class="line"><a name="l02373"></a><span class="lineno"> 2373</span>&#160;    }</div><div class="ttc" id="classttmath_1_1_big_html_a2bf2c98f26adfd1386597f2b9f195d02"><div class="ttname"><a href="classttmath_1_1_big.html#a2bf2c98f26adfd1386597f2b9f195d02">ttmath::Big::ToInt</a></div><div class="ttdeci">sint ToInt() const</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l02366">ttmathbig.h:2366</a></div></div>
<div class="ttc" id="namespacettmath_html_a4b0a5dcba29a2c7a0abc8b4403a25ac4"><div class="ttname"><a href="namespacettmath.html#a4b0a5dcba29a2c7a0abc8b4403a25ac4">ttmath::sint</a></div><div class="ttdeci">int64_t sint</div><div class="ttdef"><b>Definition:</b> <a href="ttmathtypes_8h_source.html#l00243">ttmathtypes.h:243</a></div></div>
</div><!-- fragment -->
<p class="reference">Referenced by <a class="el" href="ttmathbig_8h_source.html#l03410">ttmath::Big&lt; exp, man &gt;::ToInt()</a>.</p>

</div>
</div>
<a id="a033eede8a51437c3d595ef7cab8aac32"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a033eede8a51437c3d595ef7cab8aac32">&#9670;&nbsp;</a></span>ToInt() <span class="overload">[2/7]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;uint exp, uint man&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a> <a class="el" href="classttmath_1_1_big.html">ttmath::Big</a>&lt; exp, man &gt;::ToInt </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a> &amp;&#160;</td>
          <td class="paramname"><em>result</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>this method converts 'this' into 'result'</p>
<p>if the value is too big this method returns a carry (1) </p>

<p class="definition">Definition at line <a class="el" href="ttmathbig_8h_source.html#l02381">2381</a> of file <a class="el" href="ttmathbig_8h_source.html">ttmathbig.h</a>.</p>
<div class="fragment"><div class="line"><a name="l02382"></a><span class="lineno"> 2382</span>&#160;    {</div><div class="line"><a name="l02383"></a><span class="lineno"> 2383</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="classttmath_1_1_big.html#ada7e166f426b5adbd1e539040d5a5e14">ToUInt</a>(result);</div><div class="line"><a name="l02384"></a><span class="lineno"> 2384</span>&#160;    }</div><div class="ttc" id="classttmath_1_1_big_html_ada7e166f426b5adbd1e539040d5a5e14"><div class="ttname"><a href="classttmath_1_1_big.html#ada7e166f426b5adbd1e539040d5a5e14">ttmath::Big::ToUInt</a></div><div class="ttdeci">uint ToUInt() const</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l02336">ttmathbig.h:2336</a></div></div>
</div><!-- fragment -->
<p class="reference">References <a class="el" href="ttmathbig_8h_source.html#l02336">ttmath::Big&lt; exp, man &gt;::ToUInt()</a>.</p>

</div>
</div>
<a id="a694c79746d5e9ff547b7b507b7a0a82d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a694c79746d5e9ff547b7b507b7a0a82d">&#9670;&nbsp;</a></span>ToInt() <span class="overload">[3/7]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;uint exp, uint man&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a> <a class="el" href="classttmath_1_1_big.html">ttmath::Big</a>&lt; exp, man &gt;::ToInt </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="namespacettmath.html#a4b0a5dcba29a2c7a0abc8b4403a25ac4">sint</a> &amp;&#160;</td>
          <td class="paramname"><em>result</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>this method converts 'this' into 'result'</p>
<p>if the value is too big this method returns a carry (1) </p>

<p class="definition">Definition at line <a class="el" href="ttmathbig_8h_source.html#l02392">2392</a> of file <a class="el" href="ttmathbig_8h_source.html">ttmathbig.h</a>.</p>
<div class="fragment"><div class="line"><a name="l02393"></a><span class="lineno"> 2393</span>&#160;    {</div><div class="line"><a name="l02394"></a><span class="lineno"> 2394</span>&#160;    <a class="code" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a> result_uint;</div><div class="line"><a name="l02395"></a><span class="lineno"> 2395</span>&#160;</div><div class="line"><a name="l02396"></a><span class="lineno"> 2396</span>&#160;        <a class="code" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a> c = ToUIntOrInt(result_uint);</div><div class="line"><a name="l02397"></a><span class="lineno"> 2397</span>&#160;        result = <a class="code" href="namespacettmath.html#a4b0a5dcba29a2c7a0abc8b4403a25ac4">sint</a>(result_uint);</div><div class="line"><a name="l02398"></a><span class="lineno"> 2398</span>&#160;</div><div class="line"><a name="l02399"></a><span class="lineno"> 2399</span>&#160;        <span class="keywordflow">if</span>( c )</div><div class="line"><a name="l02400"></a><span class="lineno"> 2400</span>&#160;            <span class="keywordflow">return</span> 1;</div><div class="line"><a name="l02401"></a><span class="lineno"> 2401</span>&#160;</div><div class="line"><a name="l02402"></a><span class="lineno"> 2402</span>&#160;        <a class="code" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a> mask = 0;</div><div class="line"><a name="l02403"></a><span class="lineno"> 2403</span>&#160;</div><div class="line"><a name="l02404"></a><span class="lineno"> 2404</span>&#160;        <span class="keywordflow">if</span>( <a class="code" href="classttmath_1_1_big.html#ac8f89807eb1878d93d76fe609f4a6b42">IsSign</a>() )</div><div class="line"><a name="l02405"></a><span class="lineno"> 2405</span>&#160;        {</div><div class="line"><a name="l02406"></a><span class="lineno"> 2406</span>&#160;            mask = <a class="code" href="ttmathtypes_8h.html#a3af4b841f70a529a150c820780e1eb40">TTMATH_UINT_MAX_VALUE</a>;</div><div class="line"><a name="l02407"></a><span class="lineno"> 2407</span>&#160;            result = -result;</div><div class="line"><a name="l02408"></a><span class="lineno"> 2408</span>&#160;        }</div><div class="line"><a name="l02409"></a><span class="lineno"> 2409</span>&#160;</div><div class="line"><a name="l02410"></a><span class="lineno"> 2410</span>&#160;    <span class="keywordflow">return</span> ((result &amp; <a class="code" href="ttmathtypes_8h.html#a0ccaf279c13b1d747ef8c4690d84b5dd">TTMATH_UINT_HIGHEST_BIT</a>) == (mask &amp; <a class="code" href="ttmathtypes_8h.html#a0ccaf279c13b1d747ef8c4690d84b5dd">TTMATH_UINT_HIGHEST_BIT</a>)) ? 0 : 1;</div><div class="line"><a name="l02411"></a><span class="lineno"> 2411</span>&#160;    }</div><div class="ttc" id="classttmath_1_1_big_html_ac8f89807eb1878d93d76fe609f4a6b42"><div class="ttname"><a href="classttmath_1_1_big.html#ac8f89807eb1878d93d76fe609f4a6b42">ttmath::Big::IsSign</a></div><div class="ttdeci">bool IsSign() const</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l00658">ttmathbig.h:658</a></div></div>
<div class="ttc" id="ttmathtypes_8h_html_a0ccaf279c13b1d747ef8c4690d84b5dd"><div class="ttname"><a href="ttmathtypes_8h.html#a0ccaf279c13b1d747ef8c4690d84b5dd">TTMATH_UINT_HIGHEST_BIT</a></div><div class="ttdeci">#define TTMATH_UINT_HIGHEST_BIT</div><div class="ttdef"><b>Definition:</b> <a href="ttmathtypes_8h_source.html#l00258">ttmathtypes.h:258</a></div></div>
<div class="ttc" id="ttmathtypes_8h_html_a3af4b841f70a529a150c820780e1eb40"><div class="ttname"><a href="ttmathtypes_8h.html#a3af4b841f70a529a150c820780e1eb40">TTMATH_UINT_MAX_VALUE</a></div><div class="ttdeci">#define TTMATH_UINT_MAX_VALUE</div><div class="ttdef"><b>Definition:</b> <a href="ttmathtypes_8h_source.html#l00264">ttmathtypes.h:264</a></div></div>
<div class="ttc" id="namespacettmath_html_a4b0a5dcba29a2c7a0abc8b4403a25ac4"><div class="ttname"><a href="namespacettmath.html#a4b0a5dcba29a2c7a0abc8b4403a25ac4">ttmath::sint</a></div><div class="ttdeci">int64_t sint</div><div class="ttdef"><b>Definition:</b> <a href="ttmathtypes_8h_source.html#l00243">ttmathtypes.h:243</a></div></div>
<div class="ttc" id="namespacettmath_html_a5c1fccc9761aaa3d2b6dd32c224f5dac"><div class="ttname"><a href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">ttmath::uint</a></div><div class="ttdeci">uint64_t uint</div><div class="ttdef"><b>Definition:</b> <a href="ttmathtypes_8h_source.html#l00238">ttmathtypes.h:238</a></div></div>
</div><!-- fragment -->
<p class="reference">References <a class="el" href="ttmathbig_8h_source.html#l00658">ttmath::Big&lt; exp, man &gt;::IsSign()</a>, <a class="el" href="ttmathtypes_8h_source.html#l00258">TTMATH_UINT_HIGHEST_BIT</a>, and <a class="el" href="ttmathtypes_8h_source.html#l00264">TTMATH_UINT_MAX_VALUE</a>.</p>

</div>
</div>
<a id="a7825c0764bf6b746be5f0775dc704f54"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7825c0764bf6b746be5f0775dc704f54">&#9670;&nbsp;</a></span>ToInt() <span class="overload">[4/7]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;uint exp, uint man&gt; </div>
<div class="memtemplate">
template&lt;uint int_size&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a> <a class="el" href="classttmath_1_1_big.html">ttmath::Big</a>&lt; exp, man &gt;::ToInt </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classttmath_1_1_u_int.html">UInt</a>&lt; int_size &gt; &amp;&#160;</td>
          <td class="paramname"><em>result</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>this method converts 'this' into 'result'</p>
<p>if the value is too big this method returns a carry (1) </p>

<p class="definition">Definition at line <a class="el" href="ttmathbig_8h_source.html#l02504">2504</a> of file <a class="el" href="ttmathbig_8h_source.html">ttmathbig.h</a>.</p>
<div class="fragment"><div class="line"><a name="l02505"></a><span class="lineno"> 2505</span>&#160;    {</div><div class="line"><a name="l02506"></a><span class="lineno"> 2506</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="classttmath_1_1_big.html#ada7e166f426b5adbd1e539040d5a5e14">ToUInt</a>(result);</div><div class="line"><a name="l02507"></a><span class="lineno"> 2507</span>&#160;    }</div><div class="ttc" id="classttmath_1_1_big_html_ada7e166f426b5adbd1e539040d5a5e14"><div class="ttname"><a href="classttmath_1_1_big.html#ada7e166f426b5adbd1e539040d5a5e14">ttmath::Big::ToUInt</a></div><div class="ttdeci">uint ToUInt() const</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l02336">ttmathbig.h:2336</a></div></div>
</div><!-- fragment -->
<p class="reference">References <a class="el" href="ttmathbig_8h_source.html#l02336">ttmath::Big&lt; exp, man &gt;::ToUInt()</a>.</p>

</div>
</div>
<a id="ab832ccd3ae1bceb85699542f441fa6ba"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab832ccd3ae1bceb85699542f441fa6ba">&#9670;&nbsp;</a></span>ToInt() <span class="overload">[5/7]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;uint exp, uint man&gt; </div>
<div class="memtemplate">
template&lt;uint int_size&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a> <a class="el" href="classttmath_1_1_big.html">ttmath::Big</a>&lt; exp, man &gt;::ToInt </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classttmath_1_1_int.html">Int</a>&lt; int_size &gt; &amp;&#160;</td>
          <td class="paramname"><em>result</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>this method converts 'this' into 'result'</p>
<p>if the value is too big this method returns a carry (1) </p>

<p class="definition">Definition at line <a class="el" href="ttmathbig_8h_source.html#l02516">2516</a> of file <a class="el" href="ttmathbig_8h_source.html">ttmathbig.h</a>.</p>
<div class="fragment"><div class="line"><a name="l02517"></a><span class="lineno"> 2517</span>&#160;    {</div><div class="line"><a name="l02518"></a><span class="lineno"> 2518</span>&#160;        <a class="code" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a> c = ToUIntOrInt(result);</div><div class="line"><a name="l02519"></a><span class="lineno"> 2519</span>&#160;</div><div class="line"><a name="l02520"></a><span class="lineno"> 2520</span>&#160;        <span class="keywordflow">if</span>( c )</div><div class="line"><a name="l02521"></a><span class="lineno"> 2521</span>&#160;            <span class="keywordflow">return</span> 1;</div><div class="line"><a name="l02522"></a><span class="lineno"> 2522</span>&#160;</div><div class="line"><a name="l02523"></a><span class="lineno"> 2523</span>&#160;        <a class="code" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a> mask = 0;</div><div class="line"><a name="l02524"></a><span class="lineno"> 2524</span>&#160;</div><div class="line"><a name="l02525"></a><span class="lineno"> 2525</span>&#160;        <span class="keywordflow">if</span>( <a class="code" href="classttmath_1_1_big.html#ac8f89807eb1878d93d76fe609f4a6b42">IsSign</a>() )</div><div class="line"><a name="l02526"></a><span class="lineno"> 2526</span>&#160;        {</div><div class="line"><a name="l02527"></a><span class="lineno"> 2527</span>&#160;            result.ChangeSign();</div><div class="line"><a name="l02528"></a><span class="lineno"> 2528</span>&#160;            mask = <a class="code" href="ttmathtypes_8h.html#a3af4b841f70a529a150c820780e1eb40">TTMATH_UINT_MAX_VALUE</a>;</div><div class="line"><a name="l02529"></a><span class="lineno"> 2529</span>&#160;        }</div><div class="line"><a name="l02530"></a><span class="lineno"> 2530</span>&#160;</div><div class="line"><a name="l02531"></a><span class="lineno"> 2531</span>&#160;    <span class="keywordflow">return</span> ((result.table[int_size-1] &amp; <a class="code" href="ttmathtypes_8h.html#a0ccaf279c13b1d747ef8c4690d84b5dd">TTMATH_UINT_HIGHEST_BIT</a>) == (mask &amp; <a class="code" href="ttmathtypes_8h.html#a0ccaf279c13b1d747ef8c4690d84b5dd">TTMATH_UINT_HIGHEST_BIT</a>))? 0 : 1;</div><div class="line"><a name="l02532"></a><span class="lineno"> 2532</span>&#160;    }</div><div class="ttc" id="classttmath_1_1_big_html_ac8f89807eb1878d93d76fe609f4a6b42"><div class="ttname"><a href="classttmath_1_1_big.html#ac8f89807eb1878d93d76fe609f4a6b42">ttmath::Big::IsSign</a></div><div class="ttdeci">bool IsSign() const</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l00658">ttmathbig.h:658</a></div></div>
<div class="ttc" id="ttmathtypes_8h_html_a0ccaf279c13b1d747ef8c4690d84b5dd"><div class="ttname"><a href="ttmathtypes_8h.html#a0ccaf279c13b1d747ef8c4690d84b5dd">TTMATH_UINT_HIGHEST_BIT</a></div><div class="ttdeci">#define TTMATH_UINT_HIGHEST_BIT</div><div class="ttdef"><b>Definition:</b> <a href="ttmathtypes_8h_source.html#l00258">ttmathtypes.h:258</a></div></div>
<div class="ttc" id="ttmathtypes_8h_html_a3af4b841f70a529a150c820780e1eb40"><div class="ttname"><a href="ttmathtypes_8h.html#a3af4b841f70a529a150c820780e1eb40">TTMATH_UINT_MAX_VALUE</a></div><div class="ttdeci">#define TTMATH_UINT_MAX_VALUE</div><div class="ttdef"><b>Definition:</b> <a href="ttmathtypes_8h_source.html#l00264">ttmathtypes.h:264</a></div></div>
<div class="ttc" id="namespacettmath_html_a5c1fccc9761aaa3d2b6dd32c224f5dac"><div class="ttname"><a href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">ttmath::uint</a></div><div class="ttdeci">uint64_t uint</div><div class="ttdef"><b>Definition:</b> <a href="ttmathtypes_8h_source.html#l00238">ttmathtypes.h:238</a></div></div>
</div><!-- fragment -->
<p class="reference">References <a class="el" href="ttmathint_8h_source.html#l00105">ttmath::Int&lt; value_size &gt;::ChangeSign()</a>, <a class="el" href="ttmathbig_8h_source.html#l00658">ttmath::Big&lt; exp, man &gt;::IsSign()</a>, <a class="el" href="ttmathuint_8h_source.html#l00081">ttmath::UInt&lt; value_size &gt;::table</a>, <a class="el" href="ttmathtypes_8h_source.html#l00258">TTMATH_UINT_HIGHEST_BIT</a>, and <a class="el" href="ttmathtypes_8h_source.html#l00264">TTMATH_UINT_MAX_VALUE</a>.</p>

</div>
</div>
<a id="a48792b7753dc6e5d690bf8a578463bdf"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a48792b7753dc6e5d690bf8a578463bdf">&#9670;&nbsp;</a></span>ToInt() <span class="overload">[6/7]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;uint exp, uint man&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a> <a class="el" href="classttmath_1_1_big.html">ttmath::Big</a>&lt; exp, man &gt;::ToInt </td>
          <td>(</td>
          <td class="paramtype">unsigned int &amp;&#160;</td>
          <td class="paramname"><em>result</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>this method converts 'this' into 'result' (32 bit unsigned integer) this method is created only on a 64bit platform*** if the value is too big this method returns a carry (1) </p>

<p class="definition">Definition at line <a class="el" href="ttmathbig_8h_source.html#l03399">3399</a> of file <a class="el" href="ttmathbig_8h_source.html">ttmathbig.h</a>.</p>
<div class="fragment"><div class="line"><a name="l03400"></a><span class="lineno"> 3400</span>&#160;    {</div><div class="line"><a name="l03401"></a><span class="lineno"> 3401</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="classttmath_1_1_big.html#ada7e166f426b5adbd1e539040d5a5e14">ToUInt</a>(result);</div><div class="line"><a name="l03402"></a><span class="lineno"> 3402</span>&#160;    }</div><div class="ttc" id="classttmath_1_1_big_html_ada7e166f426b5adbd1e539040d5a5e14"><div class="ttname"><a href="classttmath_1_1_big.html#ada7e166f426b5adbd1e539040d5a5e14">ttmath::Big::ToUInt</a></div><div class="ttdeci">uint ToUInt() const</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l02336">ttmathbig.h:2336</a></div></div>
</div><!-- fragment -->
<p class="reference">References <a class="el" href="ttmathbig_8h_source.html#l02336">ttmath::Big&lt; exp, man &gt;::ToUInt()</a>.</p>

</div>
</div>
<a id="a7464feaf986422898a2dd1e66e73784f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7464feaf986422898a2dd1e66e73784f">&#9670;&nbsp;</a></span>ToInt() <span class="overload">[7/7]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;uint exp, uint man&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a> <a class="el" href="classttmath_1_1_big.html">ttmath::Big</a>&lt; exp, man &gt;::ToInt </td>
          <td>(</td>
          <td class="paramtype">signed int &amp;&#160;</td>
          <td class="paramname"><em>result</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>this method converts 'this' into 'result' (32 bit signed integer) this method is created only on a 64bit platform*** if the value is too big this method returns a carry (1) </p>

<p class="definition">Definition at line <a class="el" href="ttmathbig_8h_source.html#l03410">3410</a> of file <a class="el" href="ttmathbig_8h_source.html">ttmathbig.h</a>.</p>
<div class="fragment"><div class="line"><a name="l03411"></a><span class="lineno"> 3411</span>&#160;    {</div><div class="line"><a name="l03412"></a><span class="lineno"> 3412</span>&#160;    <a class="code" href="namespacettmath.html#a4b0a5dcba29a2c7a0abc8b4403a25ac4">sint</a> result_sint;</div><div class="line"><a name="l03413"></a><span class="lineno"> 3413</span>&#160;</div><div class="line"><a name="l03414"></a><span class="lineno"> 3414</span>&#160;        <a class="code" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a> c = <a class="code" href="classttmath_1_1_big.html#a2bf2c98f26adfd1386597f2b9f195d02">ToInt</a>(result_sint);</div><div class="line"><a name="l03415"></a><span class="lineno"> 3415</span>&#160;        result = (<span class="keywordtype">signed</span> int)result_sint;</div><div class="line"><a name="l03416"></a><span class="lineno"> 3416</span>&#160;</div><div class="line"><a name="l03417"></a><span class="lineno"> 3417</span>&#160;        <span class="keywordflow">if</span>( c || result_sint != <a class="code" href="namespacettmath.html#a4b0a5dcba29a2c7a0abc8b4403a25ac4">sint</a>(result) )</div><div class="line"><a name="l03418"></a><span class="lineno"> 3418</span>&#160;            <span class="keywordflow">return</span> 1;</div><div class="line"><a name="l03419"></a><span class="lineno"> 3419</span>&#160;</div><div class="line"><a name="l03420"></a><span class="lineno"> 3420</span>&#160;    <span class="keywordflow">return</span> 0;</div><div class="line"><a name="l03421"></a><span class="lineno"> 3421</span>&#160;    }</div><div class="ttc" id="classttmath_1_1_big_html_a2bf2c98f26adfd1386597f2b9f195d02"><div class="ttname"><a href="classttmath_1_1_big.html#a2bf2c98f26adfd1386597f2b9f195d02">ttmath::Big::ToInt</a></div><div class="ttdeci">sint ToInt() const</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l02366">ttmathbig.h:2366</a></div></div>
<div class="ttc" id="namespacettmath_html_a4b0a5dcba29a2c7a0abc8b4403a25ac4"><div class="ttname"><a href="namespacettmath.html#a4b0a5dcba29a2c7a0abc8b4403a25ac4">ttmath::sint</a></div><div class="ttdeci">int64_t sint</div><div class="ttdef"><b>Definition:</b> <a href="ttmathtypes_8h_source.html#l00243">ttmathtypes.h:243</a></div></div>
<div class="ttc" id="namespacettmath_html_a5c1fccc9761aaa3d2b6dd32c224f5dac"><div class="ttname"><a href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">ttmath::uint</a></div><div class="ttdeci">uint64_t uint</div><div class="ttdef"><b>Definition:</b> <a href="ttmathtypes_8h_source.html#l00238">ttmathtypes.h:238</a></div></div>
</div><!-- fragment -->
<p class="reference">References <a class="el" href="ttmathbig_8h_source.html#l02366">ttmath::Big&lt; exp, man &gt;::ToInt()</a>.</p>

</div>
</div>
<a id="a3d8da6a88dda87845a13a13c8abfcfa4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3d8da6a88dda87845a13a13c8abfcfa4">&#9670;&nbsp;</a></span>ToString() <span class="overload">[1/6]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;uint exp, uint man&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a> <a class="el" href="classttmath_1_1_big.html">ttmath::Big</a>&lt; exp, man &gt;::ToString </td>
          <td>(</td>
          <td class="paramtype">std::string &amp;&#160;</td>
          <td class="paramname"><em>result</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a>&#160;</td>
          <td class="paramname"><em>base</em> = <code>10</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>scient</em> = <code>false</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespacettmath.html#a4b0a5dcba29a2c7a0abc8b4403a25ac4">sint</a>&#160;</td>
          <td class="paramname"><em>scient_from</em> = <code>15</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespacettmath.html#a4b0a5dcba29a2c7a0abc8b4403a25ac4">sint</a>&#160;</td>
          <td class="paramname"><em>round</em> = <code>-1</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>trim_zeroes</em> = <code>true</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char&#160;</td>
          <td class="paramname"><em>comma</em> = <code>'.'</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>a method for converting into a string struct <a class="el" href="structttmath_1_1_conv.html">Conv</a> is defined in <a class="el" href="ttmathtypes_8h.html" title="constants used in the library">ttmathtypes.h</a>, look there for more information about parameters</p>
<p>return value:</p><ul>
<li>0 - ok and 'result' will be an object of type std::string (or std::wstring) which holds the value</li>
<li>1 - if there is a carry (it shoudn't be in a normal situation - if it is that means there is somewhere an error in the library) </li>
</ul>

<p class="definition">Definition at line <a class="el" href="ttmathbig_8h_source.html#l03715">3715</a> of file <a class="el" href="ttmathbig_8h_source.html">ttmathbig.h</a>.</p>
<div class="fragment"><div class="line"><a name="l03722"></a><span class="lineno"> 3722</span>&#160;    {</div><div class="line"><a name="l03723"></a><span class="lineno"> 3723</span>&#160;        Conv conv;</div><div class="line"><a name="l03724"></a><span class="lineno"> 3724</span>&#160;</div><div class="line"><a name="l03725"></a><span class="lineno"> 3725</span>&#160;        conv.base         = base;</div><div class="line"><a name="l03726"></a><span class="lineno"> 3726</span>&#160;        conv.scient       = scient;</div><div class="line"><a name="l03727"></a><span class="lineno"> 3727</span>&#160;        conv.scient_from  = scient_from;</div><div class="line"><a name="l03728"></a><span class="lineno"> 3728</span>&#160;        conv.round        = round;</div><div class="line"><a name="l03729"></a><span class="lineno"> 3729</span>&#160;        conv.trim_zeroes  = trim_zeroes;</div><div class="line"><a name="l03730"></a><span class="lineno"> 3730</span>&#160;        conv.comma        = static_cast&lt;uint&gt;(comma);</div><div class="line"><a name="l03731"></a><span class="lineno"> 3731</span>&#160;</div><div class="line"><a name="l03732"></a><span class="lineno"> 3732</span>&#160;    <span class="keywordflow">return</span> ToStringBase&lt;std::string, char&gt;(result, conv);</div><div class="line"><a name="l03733"></a><span class="lineno"> 3733</span>&#160;    }</div></div><!-- fragment -->
<p class="reference">References <a class="el" href="ttmathtypes_8h_source.html#l00413">ttmath::Conv::base</a>, <a class="el" href="ttmathtypes_8h_source.html#l00477">ttmath::Conv::comma</a>, <a class="el" href="ttmathtypes_8h_source.html#l00461">ttmath::Conv::round</a>, <a class="el" href="ttmathtypes_8h_source.html#l00421">ttmath::Conv::scient</a>, <a class="el" href="ttmathtypes_8h_source.html#l00430">ttmath::Conv::scient_from</a>, and <a class="el" href="ttmathtypes_8h_source.html#l00470">ttmath::Conv::trim_zeroes</a>.</p>

<p class="reference">Referenced by <a class="el" href="ttmathbig_8h_source.html#l03763">ttmath::Big&lt; exp, man &gt;::ToString()</a>.</p>

</div>
</div>
<a id="a46a0a5b484d4cdb01d8c8f488037135b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a46a0a5b484d4cdb01d8c8f488037135b">&#9670;&nbsp;</a></span>ToString() <span class="overload">[2/6]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;uint exp, uint man&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a> <a class="el" href="classttmath_1_1_big.html">ttmath::Big</a>&lt; exp, man &gt;::ToString </td>
          <td>(</td>
          <td class="paramtype">std::string &amp;&#160;</td>
          <td class="paramname"><em>result</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="structttmath_1_1_conv.html">Conv</a> &amp;&#160;</td>
          <td class="paramname"><em>conv</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>a method for converting into a string struct <a class="el" href="structttmath_1_1_conv.html">Conv</a> is defined in <a class="el" href="ttmathtypes_8h.html" title="constants used in the library">ttmathtypes.h</a>, look there for more information about parameters </p>

<p class="definition">Definition at line <a class="el" href="ttmathbig_8h_source.html#l03740">3740</a> of file <a class="el" href="ttmathbig_8h_source.html">ttmathbig.h</a>.</p>
<div class="fragment"><div class="line"><a name="l03741"></a><span class="lineno"> 3741</span>&#160;    {</div><div class="line"><a name="l03742"></a><span class="lineno"> 3742</span>&#160;        <span class="keywordflow">return</span> ToStringBase&lt;std::string, char&gt;(result, conv);</div><div class="line"><a name="l03743"></a><span class="lineno"> 3743</span>&#160;    }</div></div><!-- fragment -->
</div>
</div>
<a id="aa8ccdb8b4d9851038d35b42dfe8d5dcf"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa8ccdb8b4d9851038d35b42dfe8d5dcf">&#9670;&nbsp;</a></span>ToString() <span class="overload">[3/6]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;uint exp, uint man&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">std::string <a class="el" href="classttmath_1_1_big.html">ttmath::Big</a>&lt; exp, man &gt;::ToString </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="structttmath_1_1_conv.html">Conv</a> &amp;&#160;</td>
          <td class="paramname"><em>conv</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>a method for converting into a string struct <a class="el" href="structttmath_1_1_conv.html">Conv</a> is defined in <a class="el" href="ttmathtypes_8h.html" title="constants used in the library">ttmathtypes.h</a>, look there for more information about parameters </p>

<p class="definition">Definition at line <a class="el" href="ttmathbig_8h_source.html#l03750">3750</a> of file <a class="el" href="ttmathbig_8h_source.html">ttmathbig.h</a>.</p>
<div class="fragment"><div class="line"><a name="l03751"></a><span class="lineno"> 3751</span>&#160;    {</div><div class="line"><a name="l03752"></a><span class="lineno"> 3752</span>&#160;        std::string result;</div><div class="line"><a name="l03753"></a><span class="lineno"> 3753</span>&#160;        ToStringBase&lt;std::string, char&gt;(result, conv);</div><div class="line"><a name="l03754"></a><span class="lineno"> 3754</span>&#160;        </div><div class="line"><a name="l03755"></a><span class="lineno"> 3755</span>&#160;    <span class="keywordflow">return</span> result;</div><div class="line"><a name="l03756"></a><span class="lineno"> 3756</span>&#160;    }</div></div><!-- fragment -->
</div>
</div>
<a id="a1e706c3bfa40fab6ff3957678e351750"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1e706c3bfa40fab6ff3957678e351750">&#9670;&nbsp;</a></span>ToString() <span class="overload">[4/6]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;uint exp, uint man&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">std::string <a class="el" href="classttmath_1_1_big.html">ttmath::Big</a>&lt; exp, man &gt;::ToString </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a>&#160;</td>
          <td class="paramname"><em>base</em> = <code>10</code></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>a method for converting into a string struct <a class="el" href="structttmath_1_1_conv.html">Conv</a> is defined in <a class="el" href="ttmathtypes_8h.html" title="constants used in the library">ttmathtypes.h</a>, look there for more information about parameters </p>

<p class="definition">Definition at line <a class="el" href="ttmathbig_8h_source.html#l03763">3763</a> of file <a class="el" href="ttmathbig_8h_source.html">ttmathbig.h</a>.</p>
<div class="fragment"><div class="line"><a name="l03764"></a><span class="lineno"> 3764</span>&#160;    {</div><div class="line"><a name="l03765"></a><span class="lineno"> 3765</span>&#160;        Conv conv;</div><div class="line"><a name="l03766"></a><span class="lineno"> 3766</span>&#160;        conv.base = base;</div><div class="line"><a name="l03767"></a><span class="lineno"> 3767</span>&#160;</div><div class="line"><a name="l03768"></a><span class="lineno"> 3768</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="classttmath_1_1_big.html#a3d8da6a88dda87845a13a13c8abfcfa4">ToString</a>(conv);</div><div class="line"><a name="l03769"></a><span class="lineno"> 3769</span>&#160;    }</div><div class="ttc" id="classttmath_1_1_big_html_a3d8da6a88dda87845a13a13c8abfcfa4"><div class="ttname"><a href="classttmath_1_1_big.html#a3d8da6a88dda87845a13a13c8abfcfa4">ttmath::Big::ToString</a></div><div class="ttdeci">uint ToString(std::string &amp;result, uint base=10, bool scient=false, sint scient_from=15, sint round=-1, bool trim_zeroes=true, char comma='.') const</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l03715">ttmathbig.h:3715</a></div></div>
</div><!-- fragment -->
<p class="reference">References <a class="el" href="ttmathtypes_8h_source.html#l00413">ttmath::Conv::base</a>, and <a class="el" href="ttmathbig_8h_source.html#l03715">ttmath::Big&lt; exp, man &gt;::ToString()</a>.</p>

</div>
</div>
<a id="aa650c1d2064f7449e1c1cbefbd6d753e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa650c1d2064f7449e1c1cbefbd6d753e">&#9670;&nbsp;</a></span>ToString() <span class="overload">[5/6]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;uint exp, uint man&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a> <a class="el" href="classttmath_1_1_big.html">ttmath::Big</a>&lt; exp, man &gt;::ToString </td>
          <td>(</td>
          <td class="paramtype">std::wstring &amp;&#160;</td>
          <td class="paramname"><em>result</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a>&#160;</td>
          <td class="paramname"><em>base</em> = <code>10</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>scient</em> = <code>false</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespacettmath.html#a4b0a5dcba29a2c7a0abc8b4403a25ac4">sint</a>&#160;</td>
          <td class="paramname"><em>scient_from</em> = <code>15</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespacettmath.html#a4b0a5dcba29a2c7a0abc8b4403a25ac4">sint</a>&#160;</td>
          <td class="paramname"><em>round</em> = <code>-1</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>trim_zeroes</em> = <code>true</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">wchar_t&#160;</td>
          <td class="paramname"><em>comma</em> = <code>'.'</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>a method for converting into a string struct <a class="el" href="structttmath_1_1_conv.html">Conv</a> is defined in <a class="el" href="ttmathtypes_8h.html" title="constants used in the library">ttmathtypes.h</a>, look there for more information about parameters </p>

<p class="definition">Definition at line <a class="el" href="ttmathbig_8h_source.html#l03780">3780</a> of file <a class="el" href="ttmathbig_8h_source.html">ttmathbig.h</a>.</p>
<div class="fragment"><div class="line"><a name="l03787"></a><span class="lineno"> 3787</span>&#160;    {</div><div class="line"><a name="l03788"></a><span class="lineno"> 3788</span>&#160;        Conv conv;</div><div class="line"><a name="l03789"></a><span class="lineno"> 3789</span>&#160;</div><div class="line"><a name="l03790"></a><span class="lineno"> 3790</span>&#160;        conv.base         = base;</div><div class="line"><a name="l03791"></a><span class="lineno"> 3791</span>&#160;        conv.scient       = scient;</div><div class="line"><a name="l03792"></a><span class="lineno"> 3792</span>&#160;        conv.scient_from  = scient_from;</div><div class="line"><a name="l03793"></a><span class="lineno"> 3793</span>&#160;        conv.round        = round;</div><div class="line"><a name="l03794"></a><span class="lineno"> 3794</span>&#160;        conv.trim_zeroes  = trim_zeroes;</div><div class="line"><a name="l03795"></a><span class="lineno"> 3795</span>&#160;        conv.comma        = static_cast&lt;uint&gt;(comma);</div><div class="line"><a name="l03796"></a><span class="lineno"> 3796</span>&#160;</div><div class="line"><a name="l03797"></a><span class="lineno"> 3797</span>&#160;    <span class="keywordflow">return</span> ToStringBase&lt;std::wstring, wchar_t&gt;(result, conv);</div><div class="line"><a name="l03798"></a><span class="lineno"> 3798</span>&#160;    }</div></div><!-- fragment -->
<p class="reference">References <a class="el" href="ttmathtypes_8h_source.html#l00413">ttmath::Conv::base</a>, <a class="el" href="ttmathtypes_8h_source.html#l00477">ttmath::Conv::comma</a>, <a class="el" href="ttmathtypes_8h_source.html#l00461">ttmath::Conv::round</a>, <a class="el" href="ttmathtypes_8h_source.html#l00421">ttmath::Conv::scient</a>, <a class="el" href="ttmathtypes_8h_source.html#l00430">ttmath::Conv::scient_from</a>, and <a class="el" href="ttmathtypes_8h_source.html#l00470">ttmath::Conv::trim_zeroes</a>.</p>

</div>
</div>
<a id="a99f65f7af34a5974793b01836c70cca3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a99f65f7af34a5974793b01836c70cca3">&#9670;&nbsp;</a></span>ToString() <span class="overload">[6/6]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;uint exp, uint man&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a> <a class="el" href="classttmath_1_1_big.html">ttmath::Big</a>&lt; exp, man &gt;::ToString </td>
          <td>(</td>
          <td class="paramtype">std::wstring &amp;&#160;</td>
          <td class="paramname"><em>result</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="structttmath_1_1_conv.html">Conv</a> &amp;&#160;</td>
          <td class="paramname"><em>conv</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>a method for converting into a string struct <a class="el" href="structttmath_1_1_conv.html">Conv</a> is defined in <a class="el" href="ttmathtypes_8h.html" title="constants used in the library">ttmathtypes.h</a>, look there for more information about parameters </p>

<p class="definition">Definition at line <a class="el" href="ttmathbig_8h_source.html#l03805">3805</a> of file <a class="el" href="ttmathbig_8h_source.html">ttmathbig.h</a>.</p>
<div class="fragment"><div class="line"><a name="l03806"></a><span class="lineno"> 3806</span>&#160;    {</div><div class="line"><a name="l03807"></a><span class="lineno"> 3807</span>&#160;        <span class="keywordflow">return</span> ToStringBase&lt;std::wstring, wchar_t&gt;(result, conv);</div><div class="line"><a name="l03808"></a><span class="lineno"> 3808</span>&#160;    }</div></div><!-- fragment -->
</div>
</div>
<a id="ada7e166f426b5adbd1e539040d5a5e14"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ada7e166f426b5adbd1e539040d5a5e14">&#9670;&nbsp;</a></span>ToUInt() <span class="overload">[1/4]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;uint exp, uint man&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a> <a class="el" href="classttmath_1_1_big.html">ttmath::Big</a>&lt; exp, man &gt;::ToUInt </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>this method converts 'this' into uint </p>

<p class="definition">Definition at line <a class="el" href="ttmathbig_8h_source.html#l02336">2336</a> of file <a class="el" href="ttmathbig_8h_source.html">ttmathbig.h</a>.</p>
<div class="fragment"><div class="line"><a name="l02337"></a><span class="lineno"> 2337</span>&#160;    {</div><div class="line"><a name="l02338"></a><span class="lineno"> 2338</span>&#160;    <a class="code" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a> result;</div><div class="line"><a name="l02339"></a><span class="lineno"> 2339</span>&#160;</div><div class="line"><a name="l02340"></a><span class="lineno"> 2340</span>&#160;        <a class="code" href="classttmath_1_1_big.html#ada7e166f426b5adbd1e539040d5a5e14">ToUInt</a>(result);</div><div class="line"><a name="l02341"></a><span class="lineno"> 2341</span>&#160;</div><div class="line"><a name="l02342"></a><span class="lineno"> 2342</span>&#160;    <span class="keywordflow">return</span> result;</div><div class="line"><a name="l02343"></a><span class="lineno"> 2343</span>&#160;    }</div><div class="ttc" id="classttmath_1_1_big_html_ada7e166f426b5adbd1e539040d5a5e14"><div class="ttname"><a href="classttmath_1_1_big.html#ada7e166f426b5adbd1e539040d5a5e14">ttmath::Big::ToUInt</a></div><div class="ttdeci">uint ToUInt() const</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l02336">ttmathbig.h:2336</a></div></div>
<div class="ttc" id="namespacettmath_html_a5c1fccc9761aaa3d2b6dd32c224f5dac"><div class="ttname"><a href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">ttmath::uint</a></div><div class="ttdeci">uint64_t uint</div><div class="ttdef"><b>Definition:</b> <a href="ttmathtypes_8h_source.html#l00238">ttmathtypes.h:238</a></div></div>
</div><!-- fragment -->
<p class="reference">Referenced by <a class="el" href="ttmathbig_8h_source.html#l02381">ttmath::Big&lt; exp, man &gt;::ToInt()</a>, and <a class="el" href="ttmathbig_8h_source.html#l03380">ttmath::Big&lt; exp, man &gt;::ToUInt()</a>.</p>

</div>
</div>
<a id="a208511aaeacc80803434f80669fde9a9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a208511aaeacc80803434f80669fde9a9">&#9670;&nbsp;</a></span>ToUInt() <span class="overload">[2/4]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;uint exp, uint man&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a> <a class="el" href="classttmath_1_1_big.html">ttmath::Big</a>&lt; exp, man &gt;::ToUInt </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a> &amp;&#160;</td>
          <td class="paramname"><em>result</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>this method converts 'this' into 'result'</p>
<p>if the value is too big this method returns a carry (1) </p>

<p class="definition">Definition at line <a class="el" href="ttmathbig_8h_source.html#l02351">2351</a> of file <a class="el" href="ttmathbig_8h_source.html">ttmathbig.h</a>.</p>
<div class="fragment"><div class="line"><a name="l02352"></a><span class="lineno"> 2352</span>&#160;    {</div><div class="line"><a name="l02353"></a><span class="lineno"> 2353</span>&#160;        <span class="keywordflow">if</span>( ToUIntOrInt(result) )</div><div class="line"><a name="l02354"></a><span class="lineno"> 2354</span>&#160;            <span class="keywordflow">return</span> 1;</div><div class="line"><a name="l02355"></a><span class="lineno"> 2355</span>&#160;</div><div class="line"><a name="l02356"></a><span class="lineno"> 2356</span>&#160;        <span class="keywordflow">if</span>( <a class="code" href="classttmath_1_1_big.html#ac8f89807eb1878d93d76fe609f4a6b42">IsSign</a>() )</div><div class="line"><a name="l02357"></a><span class="lineno"> 2357</span>&#160;            <span class="keywordflow">return</span> 1;</div><div class="line"><a name="l02358"></a><span class="lineno"> 2358</span>&#160;</div><div class="line"><a name="l02359"></a><span class="lineno"> 2359</span>&#160;    <span class="keywordflow">return</span> 0;</div><div class="line"><a name="l02360"></a><span class="lineno"> 2360</span>&#160;    }</div><div class="ttc" id="classttmath_1_1_big_html_ac8f89807eb1878d93d76fe609f4a6b42"><div class="ttname"><a href="classttmath_1_1_big.html#ac8f89807eb1878d93d76fe609f4a6b42">ttmath::Big::IsSign</a></div><div class="ttdeci">bool IsSign() const</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l00658">ttmathbig.h:658</a></div></div>
</div><!-- fragment -->
<p class="reference">References <a class="el" href="ttmathbig_8h_source.html#l00658">ttmath::Big&lt; exp, man &gt;::IsSign()</a>.</p>

</div>
</div>
<a id="ad0996b6cc3bd87251ec2d946c7ec606a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad0996b6cc3bd87251ec2d946c7ec606a">&#9670;&nbsp;</a></span>ToUInt() <span class="overload">[3/4]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;uint exp, uint man&gt; </div>
<div class="memtemplate">
template&lt;uint int_size&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a> <a class="el" href="classttmath_1_1_big.html">ttmath::Big</a>&lt; exp, man &gt;::ToUInt </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classttmath_1_1_u_int.html">UInt</a>&lt; int_size &gt; &amp;&#160;</td>
          <td class="paramname"><em>result</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>this method converts 'this' into 'result'</p>
<p>if the value is too big this method returns a carry (1) </p>

<p class="definition">Definition at line <a class="el" href="ttmathbig_8h_source.html#l02484">2484</a> of file <a class="el" href="ttmathbig_8h_source.html">ttmathbig.h</a>.</p>
<div class="fragment"><div class="line"><a name="l02485"></a><span class="lineno"> 2485</span>&#160;    {</div><div class="line"><a name="l02486"></a><span class="lineno"> 2486</span>&#160;        <a class="code" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a> c = ToUIntOrInt(result);</div><div class="line"><a name="l02487"></a><span class="lineno"> 2487</span>&#160;</div><div class="line"><a name="l02488"></a><span class="lineno"> 2488</span>&#160;        <span class="keywordflow">if</span>( c )</div><div class="line"><a name="l02489"></a><span class="lineno"> 2489</span>&#160;            <span class="keywordflow">return</span> 1;</div><div class="line"><a name="l02490"></a><span class="lineno"> 2490</span>&#160;</div><div class="line"><a name="l02491"></a><span class="lineno"> 2491</span>&#160;        <span class="keywordflow">if</span>( <a class="code" href="classttmath_1_1_big.html#ac8f89807eb1878d93d76fe609f4a6b42">IsSign</a>() )</div><div class="line"><a name="l02492"></a><span class="lineno"> 2492</span>&#160;            <span class="keywordflow">return</span> 1;</div><div class="line"><a name="l02493"></a><span class="lineno"> 2493</span>&#160;</div><div class="line"><a name="l02494"></a><span class="lineno"> 2494</span>&#160;    <span class="keywordflow">return</span> 0;</div><div class="line"><a name="l02495"></a><span class="lineno"> 2495</span>&#160;    }</div><div class="ttc" id="classttmath_1_1_big_html_ac8f89807eb1878d93d76fe609f4a6b42"><div class="ttname"><a href="classttmath_1_1_big.html#ac8f89807eb1878d93d76fe609f4a6b42">ttmath::Big::IsSign</a></div><div class="ttdeci">bool IsSign() const</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l00658">ttmathbig.h:658</a></div></div>
<div class="ttc" id="namespacettmath_html_a5c1fccc9761aaa3d2b6dd32c224f5dac"><div class="ttname"><a href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">ttmath::uint</a></div><div class="ttdeci">uint64_t uint</div><div class="ttdef"><b>Definition:</b> <a href="ttmathtypes_8h_source.html#l00238">ttmathtypes.h:238</a></div></div>
</div><!-- fragment -->
<p class="reference">References <a class="el" href="ttmathbig_8h_source.html#l00658">ttmath::Big&lt; exp, man &gt;::IsSign()</a>.</p>

</div>
</div>
<a id="a26c0188d1e97b54804c1c87706722dd8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a26c0188d1e97b54804c1c87706722dd8">&#9670;&nbsp;</a></span>ToUInt() <span class="overload">[4/4]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;uint exp, uint man&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a> <a class="el" href="classttmath_1_1_big.html">ttmath::Big</a>&lt; exp, man &gt;::ToUInt </td>
          <td>(</td>
          <td class="paramtype">unsigned int &amp;&#160;</td>
          <td class="paramname"><em>result</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>this method converts 'this' into 'result' (32 bit unsigned integer) this method is created only on a 64bit platform*** if the value is too big this method returns a carry (1) </p>

<p class="definition">Definition at line <a class="el" href="ttmathbig_8h_source.html#l03380">3380</a> of file <a class="el" href="ttmathbig_8h_source.html">ttmathbig.h</a>.</p>
<div class="fragment"><div class="line"><a name="l03381"></a><span class="lineno"> 3381</span>&#160;    {</div><div class="line"><a name="l03382"></a><span class="lineno"> 3382</span>&#160;    <a class="code" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a> result_uint;</div><div class="line"><a name="l03383"></a><span class="lineno"> 3383</span>&#160;</div><div class="line"><a name="l03384"></a><span class="lineno"> 3384</span>&#160;        <a class="code" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a> c = <a class="code" href="classttmath_1_1_big.html#ada7e166f426b5adbd1e539040d5a5e14">ToUInt</a>(result_uint);</div><div class="line"><a name="l03385"></a><span class="lineno"> 3385</span>&#160;        result = (<span class="keywordtype">unsigned</span> int)result_uint;</div><div class="line"><a name="l03386"></a><span class="lineno"> 3386</span>&#160;</div><div class="line"><a name="l03387"></a><span class="lineno"> 3387</span>&#160;        <span class="keywordflow">if</span>( c || result_uint != <a class="code" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a>(result) )</div><div class="line"><a name="l03388"></a><span class="lineno"> 3388</span>&#160;            <span class="keywordflow">return</span> 1;</div><div class="line"><a name="l03389"></a><span class="lineno"> 3389</span>&#160;</div><div class="line"><a name="l03390"></a><span class="lineno"> 3390</span>&#160;    <span class="keywordflow">return</span> 0;</div><div class="line"><a name="l03391"></a><span class="lineno"> 3391</span>&#160;    }</div><div class="ttc" id="classttmath_1_1_big_html_ada7e166f426b5adbd1e539040d5a5e14"><div class="ttname"><a href="classttmath_1_1_big.html#ada7e166f426b5adbd1e539040d5a5e14">ttmath::Big::ToUInt</a></div><div class="ttdeci">uint ToUInt() const</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l02336">ttmathbig.h:2336</a></div></div>
<div class="ttc" id="namespacettmath_html_a5c1fccc9761aaa3d2b6dd32c224f5dac"><div class="ttname"><a href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">ttmath::uint</a></div><div class="ttdeci">uint64_t uint</div><div class="ttdef"><b>Definition:</b> <a href="ttmathtypes_8h_source.html#l00238">ttmathtypes.h:238</a></div></div>
</div><!-- fragment -->
<p class="reference">References <a class="el" href="ttmathbig_8h_source.html#l02336">ttmath::Big&lt; exp, man &gt;::ToUInt()</a>.</p>

</div>
</div>
<a id="af73a550fc9a5e8fbfb93e44d3d5a0f61"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af73a550fc9a5e8fbfb93e44d3d5a0f61">&#9670;&nbsp;</a></span>ToWString() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;uint exp, uint man&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">std::wstring <a class="el" href="classttmath_1_1_big.html">ttmath::Big</a>&lt; exp, man &gt;::ToWString </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="structttmath_1_1_conv.html">Conv</a> &amp;&#160;</td>
          <td class="paramname"><em>conv</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>a method for converting into a string struct <a class="el" href="structttmath_1_1_conv.html">Conv</a> is defined in <a class="el" href="ttmathtypes_8h.html" title="constants used in the library">ttmathtypes.h</a>, look there for more information about parameters </p>

<p class="definition">Definition at line <a class="el" href="ttmathbig_8h_source.html#l03815">3815</a> of file <a class="el" href="ttmathbig_8h_source.html">ttmathbig.h</a>.</p>
<div class="fragment"><div class="line"><a name="l03816"></a><span class="lineno"> 3816</span>&#160;    {</div><div class="line"><a name="l03817"></a><span class="lineno"> 3817</span>&#160;        std::wstring result;</div><div class="line"><a name="l03818"></a><span class="lineno"> 3818</span>&#160;        ToStringBase&lt;std::wstring, wchar_t&gt;(result, conv);</div><div class="line"><a name="l03819"></a><span class="lineno"> 3819</span>&#160;        </div><div class="line"><a name="l03820"></a><span class="lineno"> 3820</span>&#160;    <span class="keywordflow">return</span> result;</div><div class="line"><a name="l03821"></a><span class="lineno"> 3821</span>&#160;    }</div></div><!-- fragment -->
<p class="reference">Referenced by <a class="el" href="ttmathbig_8h_source.html#l03828">ttmath::Big&lt; exp, man &gt;::ToWString()</a>.</p>

</div>
</div>
<a id="a607da160d527c93bdecfc96ff4d4f2df"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a607da160d527c93bdecfc96ff4d4f2df">&#9670;&nbsp;</a></span>ToWString() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;uint exp, uint man&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">std::wstring <a class="el" href="classttmath_1_1_big.html">ttmath::Big</a>&lt; exp, man &gt;::ToWString </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="namespacettmath.html#a5c1fccc9761aaa3d2b6dd32c224f5dac">uint</a>&#160;</td>
          <td class="paramname"><em>base</em> = <code>10</code></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>a method for converting into a string struct <a class="el" href="structttmath_1_1_conv.html">Conv</a> is defined in <a class="el" href="ttmathtypes_8h.html" title="constants used in the library">ttmathtypes.h</a>, look there for more information about parameters </p>

<p class="definition">Definition at line <a class="el" href="ttmathbig_8h_source.html#l03828">3828</a> of file <a class="el" href="ttmathbig_8h_source.html">ttmathbig.h</a>.</p>
<div class="fragment"><div class="line"><a name="l03829"></a><span class="lineno"> 3829</span>&#160;    {</div><div class="line"><a name="l03830"></a><span class="lineno"> 3830</span>&#160;        Conv conv;</div><div class="line"><a name="l03831"></a><span class="lineno"> 3831</span>&#160;        conv.base = base;</div><div class="line"><a name="l03832"></a><span class="lineno"> 3832</span>&#160;</div><div class="line"><a name="l03833"></a><span class="lineno"> 3833</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="classttmath_1_1_big.html#af73a550fc9a5e8fbfb93e44d3d5a0f61">ToWString</a>(conv);</div><div class="line"><a name="l03834"></a><span class="lineno"> 3834</span>&#160;    }</div><div class="ttc" id="classttmath_1_1_big_html_af73a550fc9a5e8fbfb93e44d3d5a0f61"><div class="ttname"><a href="classttmath_1_1_big.html#af73a550fc9a5e8fbfb93e44d3d5a0f61">ttmath::Big::ToWString</a></div><div class="ttdeci">std::wstring ToWString(const Conv &amp;conv) const</div><div class="ttdef"><b>Definition:</b> <a href="ttmathbig_8h_source.html#l03815">ttmathbig.h:3815</a></div></div>
</div><!-- fragment -->
<p class="reference">References <a class="el" href="ttmathtypes_8h_source.html#l00413">ttmath::Conv::base</a>, and <a class="el" href="ttmathbig_8h_source.html#l03815">ttmath::Big&lt; exp, man &gt;::ToWString()</a>.</p>

</div>
</div>
<h2 class="groupheader">Friends And Related Function Documentation</h2>
<a id="a3301351c9140d9531c4875d4472542c7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3301351c9140d9531c4875d4472542c7">&#9670;&nbsp;</a></span>Big&lt; exp-1, man &gt;</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;uint exp, uint man&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">friend class <a class="el" href="classttmath_1_1_big.html">Big</a>&lt; exp-1, man &gt;</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">friend</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>in the method 'ToString_CreateNewMantissaAndExponent()' we're using type '<a class="el" href="classttmath_1_1_big.html" title="Big implements the floating point numbers.">Big</a>&lt;exp+1,man&gt;' and we should have the ability to use some necessary methods from that class (methods which are private here) </p>

<p class="definition">Definition at line <a class="el" href="ttmathbig_8h_source.html#l03917">3917</a> of file <a class="el" href="ttmathbig_8h_source.html">ttmathbig.h</a>.</p>

</div>
</div>
<a id="ae6d2562c5a95d6e366bf5ef16f78ffc1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae6d2562c5a95d6e366bf5ef16f78ffc1">&#9670;&nbsp;</a></span>operator&lt;&lt; <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;uint exp, uint man&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">std::ostream&amp; operator&lt;&lt; </td>
          <td>(</td>
          <td class="paramtype">std::ostream &amp;&#160;</td>
          <td class="paramname"><em>s</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classttmath_1_1_big.html">Big</a>&lt; exp, man &gt; &amp;&#160;</td>
          <td class="paramname"><em>l</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">friend</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>output to standard streams </p>

<p class="definition">Definition at line <a class="el" href="ttmathbig_8h_source.html#l05989">5989</a> of file <a class="el" href="ttmathbig_8h_source.html">ttmathbig.h</a>.</p>
<div class="fragment"><div class="line"><a name="l05990"></a><span class="lineno"> 5990</span>&#160;    {</div><div class="line"><a name="l05991"></a><span class="lineno"> 5991</span>&#160;        <span class="keywordflow">return</span> OutputToStream&lt;std::ostream, std::string&gt;(s, l);</div><div class="line"><a name="l05992"></a><span class="lineno"> 5992</span>&#160;    }</div></div><!-- fragment -->
</div>
</div>
<a id="a97f04b97ae04cf39464b9f0bb0bd3a81"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a97f04b97ae04cf39464b9f0bb0bd3a81">&#9670;&nbsp;</a></span>operator&lt;&lt; <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;uint exp, uint man&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">std::wostream&amp; operator&lt;&lt; </td>
          <td>(</td>
          <td class="paramtype">std::wostream &amp;&#160;</td>
          <td class="paramname"><em>s</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classttmath_1_1_big.html">Big</a>&lt; exp, man &gt; &amp;&#160;</td>
          <td class="paramname"><em>l</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">friend</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>output to standard streams </p>

<p class="definition">Definition at line <a class="el" href="ttmathbig_8h_source.html#l06000">6000</a> of file <a class="el" href="ttmathbig_8h_source.html">ttmathbig.h</a>.</p>
<div class="fragment"><div class="line"><a name="l06001"></a><span class="lineno"> 6001</span>&#160;    {</div><div class="line"><a name="l06002"></a><span class="lineno"> 6002</span>&#160;        <span class="keywordflow">return</span> OutputToStream&lt;std::wostream, std::wstring&gt;(s, l);</div><div class="line"><a name="l06003"></a><span class="lineno"> 6003</span>&#160;    }</div></div><!-- fragment -->
</div>
</div>
<a id="ad522ab4137846a3a9447eb5d60cca97d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad522ab4137846a3a9447eb5d60cca97d">&#9670;&nbsp;</a></span>operator&gt;&gt; <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;uint exp, uint man&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">std::istream&amp; operator&gt;&gt; </td>
          <td>(</td>
          <td class="paramtype">std::istream &amp;&#160;</td>
          <td class="paramname"><em>s</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classttmath_1_1_big.html">Big</a>&lt; exp, man &gt; &amp;&#160;</td>
          <td class="paramname"><em>l</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">friend</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>input from standard streams </p>

<p class="definition">Definition at line <a class="el" href="ttmathbig_8h_source.html#l06088">6088</a> of file <a class="el" href="ttmathbig_8h_source.html">ttmathbig.h</a>.</p>
<div class="fragment"><div class="line"><a name="l06089"></a><span class="lineno"> 6089</span>&#160;    {</div><div class="line"><a name="l06090"></a><span class="lineno"> 6090</span>&#160;        <span class="keywordflow">return</span> InputFromStream&lt;std::istream, std::string, char&gt;(s, l);</div><div class="line"><a name="l06091"></a><span class="lineno"> 6091</span>&#160;    }</div></div><!-- fragment -->
</div>
</div>
<a id="a90c19948437cc5db98999d1d59a092ab"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a90c19948437cc5db98999d1d59a092ab">&#9670;&nbsp;</a></span>operator&gt;&gt; <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;uint exp, uint man&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">std::wistream&amp; operator&gt;&gt; </td>
          <td>(</td>
          <td class="paramtype">std::wistream &amp;&#160;</td>
          <td class="paramname"><em>s</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classttmath_1_1_big.html">Big</a>&lt; exp, man &gt; &amp;&#160;</td>
          <td class="paramname"><em>l</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">friend</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>input from standard streams </p>

<p class="definition">Definition at line <a class="el" href="ttmathbig_8h_source.html#l06099">6099</a> of file <a class="el" href="ttmathbig_8h_source.html">ttmathbig.h</a>.</p>
<div class="fragment"><div class="line"><a name="l06100"></a><span class="lineno"> 6100</span>&#160;    {</div><div class="line"><a name="l06101"></a><span class="lineno"> 6101</span>&#160;        <span class="keywordflow">return</span> InputFromStream&lt;std::wistream, std::wstring, wchar_t&gt;(s, l);</div><div class="line"><a name="l06102"></a><span class="lineno"> 6102</span>&#160;    }</div></div><!-- fragment -->
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="ttmathbig_8h_source.html">ttmathbig.h</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.15
</small></address>
</body>
</html>
